X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b1903f0fbf1e41c594be9b20f00b8a621dfe7552..086116b3a14f84a5d23b33acd5390245aea88d71:/lib-php/template/address-geocodejson.php 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;