From: danil Date: Tue, 7 Feb 2023 20:19:49 +0000 (+0400) Subject: Main tag information added to geocodejson in reverse geocoding X-Git-Tag: v4.3.0~104^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/da064ea702de1a84386ec350149c07ba7de34641 Main tag information added to geocodejson in reverse geocoding --- diff --git a/lib-php/template/address-geocodejson.php b/lib-php/template/address-geocodejson.php index d54aef40..28c605f7 100644 --- a/lib-php/template/address-geocodejson.php +++ b/lib-php/template/address-geocodejson.php @@ -36,6 +36,9 @@ if (empty($aPlace)) { $aFilteredPlaces['properties']['geocoding']['osm_id'] = $aPlace['osm_id']; } + $aFilteredPlaces['properties']['geocoding']['osm_key'] = $aPlace['class']; + $aFilteredPlaces['properties']['geocoding']['osm_value'] = $aPlace['type']; + $aFilteredPlaces['properties']['geocoding']['type'] = addressRankToGeocodeJsonType($aPlace['rank_address']); $aFilteredPlaces['properties']['geocoding']['accuracy'] = (int) $fDistance;