From: marc tobias Date: Tue, 7 Apr 2020 12:50:41 +0000 (+0200) Subject: details JSON: also print isaddress addressline field X-Git-Tag: v3.5.0~51^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/9431e80eb4aa6ebcfa63e5e0d8c0cbbe7569c7c2 details JSON: also print isaddress addressline field --- diff --git a/lib/template/details-json.php b/lib/template/details-json.php index 955441ad..fe184dfe 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' => (bool) $aFull['isaddress'] ); return $aMapped;