Hi,

I am trying to convert an address to coordinates using the following but it doesn't work (no errors displayed):

PHP Code:
<?php
$data 
= new SimpleXMLElement(file_get_contents('http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false'));

$latitude $data->GeocodeResponse->result->geometry->location->lat;
$longitude $data->GeocodeResponse->result->geometry->location->lng;

echo 
$latitude;
echo 
$longitude;
?>
I guess I am doing something wrong but I can't see what.

Thanks for any ideas.