]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/details-json.php
details JSON: also print isaddress addressline field
[nominatim.git] / 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;