From 9431e80eb4aa6ebcfa63e5e0d8c0cbbe7569c7c2 Mon Sep 17 00:00:00 2001 From: marc tobias Date: Tue, 7 Apr 2020 14:50:41 +0200 Subject: [PATCH 1/1] details JSON: also print isaddress addressline field --- lib/template/details-json.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5