mam o to taki skrypt:
<?php $addressG = 'http://maps.google.com/maps/geo?output=json&oe=utf-8&key=ukryty'; $ar = json_decode($page,true); ?>
Pokazuje szczegółowe dane o wybranej lokalizacji w takiej formie:
Array ( [name] => Warszawa,Poland [Status] => Array ( [code] => 200 [request] => geocode ) [Placemark] => Array ( [0] => Array ( [id] => p1 [address] => Warsaw, Poland [AddressDetails] => Array ( [Country] => Array ( [CountryNameCode] => PL [CountryName] => Poland [AdministrativeArea] => Array ( [AdministrativeAreaName] => Mazowieckie [SubAdministrativeArea] => Array ( [SubAdministrativeAreaName] => Warsaw [Locality] => Array ( [LocalityName] => Warsaw ) ) ) ) [Accuracy] => 4 ) [ExtendedData] => Array ( [LatLonBox] => Array ( [north] => 52.3388889 [south] => 52.120193 [east] => 21.2683475 [west] => 20.7561099 ) ) [Point] => Array ( [coordinates] => Array ( [0] => 21.0122287 [1] => 52.2296756 [2] => 0 ) ) ) ) )
Potrzebuję wyciągnąć z tego coordinates... i za żadne chiny nie mogę :/