Hi,

Here is a link to a test file I'm working with: 
http://www.frankkoonce.com/test.php.

I would like to convert the results returned from the geocoder to PHP
variables. I tried PHP's simplexml_load_file() to begin parsing the
data, but it returns 'Warning: simplexml_load_file()
[function.simplexml-load-file]: I/O warning : failed to load external
entity...'

This is the entire contents of the test file:

<?php
function getLatLong($address, $city, $state)
{
 $the_url = 'http://maps.google.com/maps/geo?q='.urlencode($address).',
+'.urlencode($city).',+'.urlencode
($state).'&amp;output=xml&amp;oe=utf8&amp;sensor=false&amp;key=ABQIAAAAEYzXFvHf9WKO_qZg-
sKS9xRPYCCXkgaeSZ4LDhVStm5XKjiTKRQ4h_yMlBjmmw2MvHanOhWE_ZJl2g';

 $xml = simplexml_load_file(file_get_contents($the_url));
}

getLatLong('1600 Amphitheatre Parkway', 'Mountain View', 'CA');
?>

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to