mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 19:07:55 +03:00
Merge pull request #1737 from mtmail/expose-isaddress-in-details-json
details JSON: also print isaddress addressline field
This commit is contained in:
commit
1047b1c191
@ -52,7 +52,8 @@ $funcMapAddressLine = function ($aFull) {
|
|||||||
'type' => $aFull['type'],
|
'type' => $aFull['type'],
|
||||||
'admin_level' => isset($aFull['admin_level']) ? (int) $aFull['admin_level'] : null,
|
'admin_level' => isset($aFull['admin_level']) ? (int) $aFull['admin_level'] : null,
|
||||||
'rank_address' => $aFull['rank_address'] ? (int) $aFull['rank_address'] : null,
|
'rank_address' => $aFull['rank_address'] ? (int) $aFull['rank_address'] : null,
|
||||||
'distance' => (float) $aFull['distance']
|
'distance' => (float) $aFull['distance'],
|
||||||
|
'isaddress' => (bool) $aFull['isaddress']
|
||||||
);
|
);
|
||||||
|
|
||||||
return $aMapped;
|
return $aMapped;
|
||||||
|
Loading…
Reference in New Issue
Block a user