X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bde251f2a244b87334528f0b01281f8bd96d1ebf..330f147b02c14c1435ca17cb4171c13644895a48:/lib/template/search-jsonv2.php diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index 671edde4..126f7866 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -40,7 +40,10 @@ $aPlace['category'] = $aPointDetails['class']; $aPlace['type'] = $aPointDetails['type']; - if ($aPointDetails['icon']) + + $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;