Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

respect addressdetails parameter in json output

  • Loading branch information...
commit d88778a561100db69ad439688698c673a2796bb6 1 parent c3233cb
@lonvia lonvia authored
View
2  lib/template/address-json.php
@@ -24,7 +24,7 @@
if (isset($aPlace['lat'])) $aFilteredPlaces['lat'] = $aPlace['lat'];
if (isset($aPlace['lon'])) $aFilteredPlaces['lon'] = $aPlace['lon'];
$aFilteredPlaces['display_name'] = $aPlace['langaddress'];
- $aFilteredPlaces['address'] = $aAddress;
+ if ($bShowAddressDetails) $aFilteredPlaces['address'] = $aAddress;
}
if (isset($_GET['json_callback']) && preg_match('/^[-A-Za-z0-9:_.]+$/',$_GET['json_callback']))
View
2  lib/template/address-jsonv2.php
@@ -29,7 +29,7 @@
$aFilteredPlaces['display_name'] = $aPlace['langaddress'];
$aFilteredPlaces['name'] = $aPlace['placename'];
- $aFilteredPlaces['address'] = $aAddress;
+ if ($bShowAddressDetails) $aFilteredPlaces['address'] = $aAddress;
}
if (isset($_GET['json_callback']) && preg_match('/^[-A-Za-z0-9:_]+$/',$_GET['json_callback']))
Please sign in to comment.
Something went wrong with that request. Please try again.