X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b86d5c6a42624708af4e57121caf5cc02241544f..330f147b02c14c1435ca17cb4171c13644895a48:/lib/template/search-jsonv2.php diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index e1552a15..126f7866 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']; @@ -50,24 +53,24 @@ $aPlace['address'] = $aPointDetails['address']; } - if (isset($aResult['asgeojson'])) + if (isset($aPointDetails['asgeojson'])) { - $aPlace['geojson'] = json_decode($aResult['asgeojson']); + $aPlace['geojson'] = json_decode($aPointDetails['asgeojson']); } - if (isset($aResult['assvg'])) + if (isset($aPointDetails['assvg'])) { - $aPlace['svg'] = $aResult['assvg']; + $aPlace['svg'] = $aPointDetails['assvg']; } - if (isset($aResult['astext'])) + if (isset($aPointDetails['astext'])) { - $aPlace['geotext'] = $aResult['astext']; + $aPlace['geotext'] = $aPointDetails['astext']; } - if (isset($aResult['askml'])) + if (isset($aPointDetails['askml'])) { - $aPlace['geokml'] = $aResult['askml']; + $aPlace['geokml'] = $aPointDetails['askml']; } $aFilteredPlaces[] = $aPlace;