Hi, i have included some code which doesnt extract all of what i need, what am i doing wrong?
<?
$api = "http://maps.googleapis.com/maps/api/geocode/xml?address=10+sapphire+street+blackburn&sensor=false";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$res = curl_exec($ch);
if ($res) {
$address = $res[formatted_address];
}
print $address;
?>
Thanks in advance, jules