X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0d189ac5df8341e80a118bc8e67e126d03cd5302..e33315eaa66d4e7612676a8e5cfdd249809670ad:/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;