]> git.openstreetmap.org Git - nominatim.git/commitdiff
always return bbox ccordinates as string
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 2 Mar 2014 16:52:09 +0000 (17:52 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 2 Mar 2014 16:52:09 +0000 (17:52 +0100)
fixes https://trac.openstreetmap.org/ticket/5132

lib/Geocode.php

index 132be9a54aa54602135d63d2a723fbf63d4f4526..9b7b9d6c596d620e539b6dfbf323b8ca6a5bf32f 100644 (file)
                                                        $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?