Skip to content

Commit

Permalink
Merge pull request #74 from akadko/master
Browse files Browse the repository at this point in the history
Return float values of latitude, longitude and altitude
  • Loading branch information
eymengunay authored Jan 16, 2018
2 parents a1e452b + a078051 commit a913911
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Passbook/Pass/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function setAltitude($altitude)
*/
public function getAltitude()
{
return $this->altitude;
return is_numeric($this->altitude) ? floatval($this->altitude) : $this->altitude;
}

/**
Expand All @@ -102,7 +102,7 @@ public function setLatitude($latitude)
*/
public function getLatitude()
{
return $this->latitude;
return is_numeric($this->latitude) ? floatval($this->latitude) : $this->latitude;
}

/**
Expand All @@ -120,7 +120,7 @@ public function setLongitude($longitude)
*/
public function getLongitude()
{
return $this->longitude;
return is_numeric($this->longitude) ? floatval($this->longitude) : $this->longitude;
}

/**
Expand Down

0 comments on commit a913911

Please sign in to comment.