]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
fix viewbox issues
[nominatim.git] / lib / Geocode.php
index 51ed32055c578d8557b0da55b89fd6c0bdf99336..7eab3678563464042c986f42c2d3e5990dc38519 100644 (file)
                        $this->aViewBox = array($fLeft, $fBottom, $fRight, $fTop);
                }
 
+               function getViewBoxString()
+               {
+                       if (!$this->aViewBox) return null;
+                       return $this->aViewBox[0].','.$this->aViewBox[3].','.$this->aViewBox[2].','.$this->aViewBox[1];
+               }
+
                function setRoute($aRoutePoints)
                {
                        $this->aRoutePoints = $aRoutePoints;