X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ea04658bde5c61965442562889292351b8df79ec..21c590416854b1245866b96772fde61050c0e01a:/lib/template/search-jsonv2.php diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index 126f7866..e9747720 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -73,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);