]> git.openstreetmap.org Git - nominatim.git/commitdiff
also return bbox ccordinates as string for nodes
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 12 Jun 2015 21:26:38 +0000 (23:26 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 12 Jun 2015 21:26:38 +0000 (23:26 +0200)
fixes https://trac.openstreetmap.org/ticket/5132 again

lib/Geocode.php

index 4ca832dca5c9425092acc58bdfcb54f3d285f5c0..c89cc48cff856531860a0eadcf084913566f4110 100644 (file)
                                                        $aPointPolygon['minlon'] = $aPointPolygon['minlon'] - $fRadius;
                                                        $aPointPolygon['maxlon'] = $aPointPolygon['maxlon'] + $fRadius;
                                                }
-                                               $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']);
                                        }
                                }