]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-jsonv2.php
Fix repeating lat twice in span instead of lat, lon.
[nominatim.git] / lib / template / address-jsonv2.php
index b6ff1627dcb33d550cba8fbe952c64cc4e4bf8bc..51d3e1a3027863c51815fccd8dd465855f6cd2fd 100644 (file)
@@ -29,7 +29,7 @@
 
                $aFilteredPlaces['display_name'] = $aPlace['langaddress'];
                 $aFilteredPlaces['name'] = $aPlace['placename'];
-               $aFilteredPlaces['address'] = $aAddress;
+               if ($bShowAddressDetails && $aAddress && sizeof($aAddress)) $aFilteredPlaces['address'] = $aAddress;
        }
 
        if (isset($_GET['json_callback']) && preg_match('/^[-A-Za-z0-9:_]+$/',$_GET['json_callback']))