X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/74c06ef877c590774b59d31ab96428e5026dd284..4a321487f3d44241242a1729ab4d137df1f57bfb:/lib/PlaceLookup.php?ds=sidebyside diff --git a/lib/PlaceLookup.php b/lib/PlaceLookup.php index 431a30af..ab336b7c 100644 --- a/lib/PlaceLookup.php +++ b/lib/PlaceLookup.php @@ -237,15 +237,18 @@ class PlaceLookup - // returns an array which will contain the keys - // aBoundingBox - // and may also contain one or more of the keys - // asgeojson - // askml - // assvg - // astext - // lat - // lon + /* returns an array which will contain the keys + * aBoundingBox + * and may also contain one or more of the keys + * asgeojson + * askml + * assvg + * astext + * lat + * lon + */ + + function getOutlines($iPlaceID, $fLon = null, $fLat = null, $fRadius = null) { @@ -301,7 +304,7 @@ class PlaceLookup (string)$aPointPolygon['maxlon'] ); } - } // CONST_Search_AreaPolygons + } // as a fallback we generate a bounding box without knowing the size of the geometry if ((!isset($aOutlineResult['aBoundingBox'])) && isset($fLon)) {