diff --git a/src/FHIRTenant/Location.php b/src/FHIRTenant/Location.php index 6f6538c..5f778fd 100644 --- a/src/FHIRTenant/Location.php +++ b/src/FHIRTenant/Location.php @@ -115,8 +115,8 @@ public function addPhysicalType($physical_type = null) public function addPosition($latitude = null, $longitude = null) { $this->location['position'] = [ - 'latitude' => $latitude ? $latitude : $this->profile->lat, - 'longitude' => $longitude ? $longitude : $this->profile->long, + 'latitude' => doubleval($latitude ? $latitude : $this->profile->lat), + 'longitude' => doubleval($longitude ? $longitude : $this->profile->long), ]; }