mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
Add options to output polygon in various formats: polygon_geojson=1&polygon_svg=1&polygon_kml=1&polygon_text=1 They can be all used at the same time if prefered. Where format and polygon type are compatible output is as native type e.g. format=json&polygon_geojson=1
This commit is contained in:
@@ -49,6 +49,26 @@
|
||||
$aPlace['address'] = $aPointDetails['address'];
|
||||
}
|
||||
|
||||
if (isset($aResult['asgeojson']))
|
||||
{
|
||||
$aPlace['geojson'] = json_decode($aResult['asgeojson']);
|
||||
}
|
||||
|
||||
if (isset($aResult['assvg']))
|
||||
{
|
||||
$aPlace['svg'] = $aResult['assvg'];
|
||||
}
|
||||
|
||||
if (isset($aResult['astext']))
|
||||
{
|
||||
$aPlace['geotext'] = $aResult['astext'];
|
||||
}
|
||||
|
||||
if (isset($aResult['askml']))
|
||||
{
|
||||
$aPlace['geokml'] = $aResult['askml'];
|
||||
}
|
||||
|
||||
$aFilteredPlaces[] = $aPlace;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user