mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
XML and JSON map 'ploygon' param to AsPoints
This commit is contained in:
@@ -1394,6 +1394,7 @@
|
||||
$aResult['lat'] = $aPointPolygon['centrelat'];
|
||||
$aResult['lon'] = $aPointPolygon['centrelon'];
|
||||
}
|
||||
|
||||
if ($this->bIncludePolygonAsPoints)
|
||||
{
|
||||
// Translate geometary string to point array
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
}
|
||||
exit;
|
||||
}
|
||||
$oGeocode->setIncludePolygonAsText($bAsPoints);
|
||||
$oGeocode->setIncludePolygonAsPoints($bAsPoints);
|
||||
$oGeocode->setIncludePolygonAsText($bAsText);
|
||||
$oGeocode->setIncludePolygonAsGeoJSON($bAsGeoJSON);
|
||||
$oGeocode->setIncludePolygonAsKML($bAsKML);
|
||||
|
||||
Reference in New Issue
Block a user