]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
Revert "restrict viewbox size"
[nominatim.git] / lib / Geocode.php
index a932949d20934f39e14be9592cd3343eeef057aa..38f7614233ea3313c3e67a84aa550fa09afc6f25 100644 (file)
                        $this->bBoundedSearch = (bool)$bBoundedSearch;
                }
 
-               function setViewBox($sLeft, $sBottom, $sRight, $sTop)
+               function setViewBox($fLeft, $fBottom, $fRight, $fTop)
                {
-                       $fLeft = (float)$sLeft;
-                       $fRight = (float)$sRight;
-                       $fTop = (float)$sTop;
-                       $fBottom = (float)$sBottom;
-                       if ($fRight > $fLeft && $fBottom < $fTop
-                           && ($fRight - $fLeft) < 2 && ($fTop - $fBottom) < 2)
-                               $this->aViewBox = array($fLeft, $fBottom, $fRight, $fTop);
+                       $this->aViewBox = array($fLeft, $fBottom, $fRight, $fTop);
                }
 
                function getViewBoxString()
                                                        $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']);
                                        }
                                }