Merge pull request #1737 from mtmail/expose-isaddress-in-details-json

details JSON: also print isaddress addressline field
This commit is contained in:
Sarah Hoffmann 2020-04-07 20:49:31 +02:00 committed by GitHub
commit 1047b1c191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;