X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ae7f676b7380e1d73aeabff09ac5696802c8624f..2338d04e9f0cd8f0ca294a1f6664d641d1522b25:/lib/template/search-jsonv2.php diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index 1c2a04dd..e9747720 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -40,6 +40,9 @@ $aPlace['category'] = $aPointDetails['class']; $aPlace['type'] = $aPointDetails['type']; + + $aPlace['importance'] = $aPointDetails['importance']; + if (isset($aPointDetails['icon'])) { $aPlace['icon'] = $aPointDetails['icon']; @@ -70,7 +73,10 @@ $aPlace['geokml'] = $aPointDetails['askml']; } + if (isset($aPointDetails['sExtraTags'])) $aPlace['extratags'] = $aPointDetails['sExtraTags']; + if (isset($aPointDetails['sNameDetails'])) $aPlace['namedetails'] = $aPointDetails['sNameDetails']; + $aFilteredPlaces[] = $aPlace; } - javascript_renderData($aFilteredPlaces, array('geojson')); + javascript_renderData($aFilteredPlaces);