mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
use already existing address field in geocodejson
This commit is contained in:
@@ -35,8 +35,8 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) {
|
||||
);
|
||||
|
||||
foreach ($aFieldMappings as $sFrom => $sTo) {
|
||||
if (isset($aPointDetails['aAddress'][$sFrom])) {
|
||||
$aPlace['properties']['geocoding'][$sTo] = $aPointDetails['aAddress'][$sFrom];
|
||||
if (isset($aPointDetails['address'][$sFrom])) {
|
||||
$aPlace['properties']['geocoding'][$sTo] = $aPointDetails['address'][$sFrom];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user