X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ed16d5b6aa35f3ef315338bd6d292d4d1ef653fb..528fe6553fe8d32a7af2923f623a3d696fa8d42f:/lib/template/details-json.php diff --git a/lib/template/details-json.php b/lib/template/details-json.php index 955441ad..d5338a05 100644 --- a/lib/template/details-json.php +++ b/lib/template/details-json.php @@ -52,7 +52,8 @@ $funcMapAddressLine = function ($aFull) { 'type' => $aFull['type'], 'admin_level' => isset($aFull['admin_level']) ? (int) $aFull['admin_level'] : null, 'rank_address' => $aFull['rank_address'] ? (int) $aFull['rank_address'] : null, - 'distance' => (float) $aFull['distance'] + 'distance' => (float) $aFull['distance'], + 'isaddress' => isset($aFull['isaddress']) ? (bool) $aFull['isaddress'] : null ); return $aMapped;