HI

I explain my problem:

1st page/Form where the customer filled his postal address (in the
form: 12 rue des poppies 10000 Troyes France)

2nd Page/I recover my variables that I concatene to arrive at: 12+rue
+des+coquelicots+10000+troyes+france

PHP ++>
// recuperation et formatage adresse
$adressegooglefinale= $adressegoogle.',+'.$cpvilla.'+'.$villegoogle.',
+'.$paysgoogle;
//declaration key
$key = "ABQIAAAABT3tx54IksuRwnC--
RKadBQGv_9p_FbAYbXgHvMVChSYzDEnThS2JyPfw_HA1t_ifo3GNfFZd-y0tw";
//format XML
$address = 'http://maps.google.com/maps/geo?q='.
$adressegooglefinale.'&output=xml&key='.$key;

$page = file_get_contents($address);

$page = utf8_encode($page);

// Parse the returned XML file
$xml = new SimpleXMLElement($page);
//on extrait les données XML (latitude et longitude)
list($longitude, $latitude, $altitude) = explode(",",
$xml->Response->Placemark->Point->coordinates);
$status = $xml->Response->Status->code;
echo $logitude' '.$latitude;

it's working but ...sometimes, I have a geocode error 620 (15000 query/
day max, but I have only 30 maiximum). Can you explain me why ?

--~--~---------~--~----~------------~-------~--~----~
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