X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8677da2a72bb54a86e91ed79e4adb943fa9ef40b..4b84de400bb69626d15dff9b3dd25ba98b0c8d33:/lib-php/template/search-geocodejson.php diff --git a/lib-php/template/search-geocodejson.php b/lib-php/template/search-geocodejson.php index ffdda6c6..5439e3cf 100644 --- a/lib-php/template/search-geocodejson.php +++ b/lib-php/template/search-geocodejson.php @@ -25,6 +25,8 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) { $aPlace['properties']['geocoding']['osm_type'] = $sOSMType; $aPlace['properties']['geocoding']['osm_id'] = $aPointDetails['osm_id']; } + $aPlace['properties']['geocoding']['osm_key'] = $aPointDetails['class']; + $aPlace['properties']['geocoding']['osm_value'] = $aPointDetails['type']; $aPlace['properties']['geocoding']['type'] = addressRankToGeocodeJsonType($aPointDetails['rank_address']);