X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f87ea067ca6023a01d0d3c5b0fb5f9b47790228b..aade8c75cb6036c85f4df36c810fbbcc07f43907:/lib/template/search-json.php?ds=inline diff --git a/lib/template/search-json.php b/lib/template/search-json.php index 70e9e46b..57586fb9 100644 --- a/lib/template/search-json.php +++ b/lib/template/search-json.php @@ -1,4 +1,6 @@ $aPointDetails) { @@ -39,6 +41,9 @@ $aPlace['class'] = $aPointDetails['class']; $aPlace['type'] = $aPointDetails['type']; + + $aPlace['importance'] = $aPointDetails['importance']; + if (isset($aPointDetails['icon']) && $aPointDetails['icon']) { $aPlace['icon'] = $aPointDetails['icon']; @@ -49,6 +54,26 @@ $aPlace['address'] = $aPointDetails['address']; } + if (isset($aPointDetails['asgeojson'])) + { + $aPlace['geojson'] = json_decode($aPointDetails['asgeojson']); + } + + if (isset($aPointDetails['assvg'])) + { + $aPlace['svg'] = $aPointDetails['assvg']; + } + + if (isset($aPointDetails['astext'])) + { + $aPlace['geotext'] = $aPointDetails['astext']; + } + + if (isset($aPointDetails['askml'])) + { + $aPlace['geokml'] = $aPointDetails['askml']; + } + $aFilteredPlaces[] = $aPlace; }