]> git.openstreetmap.org Git - nominatim.git/commitdiff
details JSON: also print isaddress addressline field
authormarc tobias <mtmail@gmx.net>
Tue, 7 Apr 2020 12:50:41 +0000 (14:50 +0200)
committermarc tobias <mtmail@gmx.net>
Tue, 7 Apr 2020 12:50:41 +0000 (14:50 +0200)
lib/template/details-json.php

index 955441add22fccff31451ceb0e81f44a29ac4229..fe184dfea2d8c1e910b5fdf7e6ff41104efb070b 100644 (file)
@@ -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,
                 '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;
                );
 
     return $aMapped;