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