From: Sarah Hoffmann Date: Sun, 2 Mar 2014 16:52:09 +0000 (+0100) Subject: always return bbox ccordinates as string X-Git-Tag: v2.3.0~69 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/236750eba469469136c4e7c3ca825e7be90cd8f4 always return bbox ccordinates as string fixes https://trac.openstreetmap.org/ticket/5132 --- diff --git a/lib/Geocode.php b/lib/Geocode.php index 132be9a5..9b7b9d6c 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1581,7 +1581,7 @@ $aResult['aPolyPoints'][] = array($aPoint[1], $aPoint[2]); } } - $aResult['aBoundingBox'] = array($aPointPolygon['minlat'],$aPointPolygon['maxlat'],$aPointPolygon['minlon'],$aPointPolygon['maxlon']); + $aResult['aBoundingBox'] = array((string)$aPointPolygon['minlat'],(string)$aPointPolygon['maxlat'],(string)$aPointPolygon['minlon'],(string)$aPointPolygon['maxlon']); } // Is there an icon set for this type of result?