From: Brian Quinion Date: Mon, 2 Sep 2013 15:44:40 +0000 (+0100) Subject: XML and JSON map 'ploygon' param to AsPoints X-Git-Tag: v2.2.0~42 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/6a337f13d03ce4bcb76cb9b2908b02e0f524c16f?hp=b3ed566d152fb7ae0ff2f750b338d47960961f4c XML and JSON map 'ploygon' param to AsPoints --- diff --git a/lib/Geocode.php b/lib/Geocode.php index e5f3a157..0e4bd0a0 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1394,6 +1394,7 @@ $aResult['lat'] = $aPointPolygon['centrelat']; $aResult['lon'] = $aPointPolygon['centrelon']; } + if ($this->bIncludePolygonAsPoints) { // Translate geometary string to point array diff --git a/website/search.php b/website/search.php index 22a1c7c0..8e0bb6f6 100755 --- a/website/search.php +++ b/website/search.php @@ -151,7 +151,7 @@ } exit; } - $oGeocode->setIncludePolygonAsText($bAsPoints); + $oGeocode->setIncludePolygonAsPoints($bAsPoints); $oGeocode->setIncludePolygonAsText($bAsText); $oGeocode->setIncludePolygonAsGeoJSON($bAsGeoJSON); $oGeocode->setIncludePolygonAsKML($bAsKML);