Daten aus Array in Variable

Hallo,
folgendes Problem:
Ich lese die Date von Google Latitude aus, wie bekomme ich die Positionsdaten in eine Variable?

stdClass Object
(
[type] => FeatureCollection
[features] => Array
(
[0] => stdClass Object
(
[type] => Feature
[geometry] => stdClass Object
(
[type] => Point
[coordinates] => Array
(
[0] => 1x.xxxxxxx
[1] => 5x.xxxxxxx
)

                    )

                [properties] => stdClass Object
                    (
                        [id] => xxxxxxxxxxxxxxxxxxxxx
                        [accuracyInMeters] => 100
                        [timeStamp] => 1315501285
                        [reverseGeocode] => Unknown Location
                        [photoUrl] => http://www.google.com/latitude/apps/badge/api?type=photo&photo=S3EgSjIBAAA.4m5CAilQMmIEKzmMKkTcxg.q7p_KBXSbqCCM6p7F3wOow
                        [photoWidth] => 96
                        [photoHeight] => 96
                        [placardUrl] => http://www.google.com/latitude/apps/badge/api?type=photo_placard&photo=S3EgSjIBAAA.4m5CAilQMmIEKzmMKkTcxg.q7p_KBXSbqCCM6p7F3wOow&moving=true&stale=false&lod=1&format=png
                        [placardWidth] => 56
                        [placardHeight] => 59
                    )

            )

    )

)

Danke schon vorher, Sabl

$id = „xxxxxxxxxxxx“;
$json = file_get_contents(„http://www.google.com/latitude/apps/badge/api?user=".$id."&type=json“);
$data = json_decode($json);
$f = $data->features;
echo $f[0]->properties->reverseGeocode;
//print_r($data);


echo $f[0]->geometry->coordinates[0]; //oder 1

paresy

Megadank dafür, jetzt gehts.

Sabl