also fix type output in geocodejson for reverse

This commit is contained in:
Sarah Hoffmann
2022-05-24 10:57:45 +02:00
parent 8a0e3e2f3d
commit a35eda3d2a

View File

@@ -36,7 +36,7 @@ if (empty($aPlace)) {
$aFilteredPlaces['properties']['geocoding']['osm_id'] = $aPlace['osm_id'];
}
$aFilteredPlaces['properties']['geocoding']['type'] = $aPlace['type'];
$aFilteredPlaces['properties']['geocoding']['type'] = addressRankToGeocodeJsonType($aPlace['rank_address']);
$aFilteredPlaces['properties']['geocoding']['accuracy'] = (int) $fDistance;