]> git.openstreetmap.org Git - nominatim.git/commitdiff
order of viewbox coordinates does not matter
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 30 Sep 2017 12:16:07 +0000 (14:16 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 1 Oct 2017 20:48:57 +0000 (22:48 +0200)
lib/Geocode.php

index a7987d2400940b5fe07c8c529366eb25df4d0cd1..fc2d6c65190ee17ecd0949c0f8c837336e88604f 100644 (file)
@@ -313,12 +313,7 @@ class Geocode
                 if (count($aViewbox) != 4) {
                     userError("Bad parmater 'viewbox'. Expected 4 coordinates.");
                 }
-                $this->setViewBox(array(
-                                   $aViewbox[0],
-                                   $aViewbox[3],
-                                   $aViewbox[2],
-                                   $aViewbox[1]
-                                  ));
+                $this->setViewBox($aViewbox);
             } else {
                 $aRoute = $oParams->getStringList('route');
                 $fRouteWidth = $oParams->getFloat('routewidth');