]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/details-json.php
Merge pull request #1739 from lonvia/remove-self-from-geojson
[nominatim.git] / lib / template / details-json.php
index 955441add22fccff31451ceb0e81f44a29ac4229..d5338a05a1a58e23b388d4c56028c308ce8feea9 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,
-                'distance' => (float) $aFull['distance']
+                'distance' => (float) $aFull['distance'],
+                'isaddress' => isset($aFull['isaddress']) ? (bool) $aFull['isaddress'] : null
                );
 
     return $aMapped;