X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/9c0ca064b833ad39eac8ffc2447331d732d1a7d0..921cc233890705d6a916fa415b51fdd88fa8fe11:/lib/template/search-json.php diff --git a/lib/template/search-json.php b/lib/template/search-json.php index dd75ad87..542e37af 100644 --- a/lib/template/search-json.php +++ b/lib/template/search-json.php @@ -1,4 +1,6 @@ $aPointDetails) { @@ -39,7 +41,7 @@ $aPlace['class'] = $aPointDetails['class']; $aPlace['type'] = $aPointDetails['type']; - if ($aPointDetails['icon']) + if (isset($aPointDetails['icon']) && $aPointDetails['icon']) { $aPlace['icon'] = $aPointDetails['icon']; } @@ -49,6 +51,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; }