X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f87ea067ca6023a01d0d3c5b0fb5f9b47790228b..fb141e027a459e4e32d0ad71803ba2ac90d1d6f1:/lib/template/search-json.php diff --git a/lib/template/search-json.php b/lib/template/search-json.php index 70e9e46b..45272d35 100644 --- a/lib/template/search-json.php +++ b/lib/template/search-json.php @@ -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; }