Hi
I found a post with a similar problem, but with no real solution.
I have a site where I use Geocoder to calculate the coordinates from
an address.
I use the standard code

$delay = 0;
$base_url = "http://maps.google.com/maps/geo?output=xml&key=my_key";;

$address_str = $address->address.', '.$address->city.', '.$address-
>province_name_en.', '.$address->country_name_en;

$geocode_pending = true;

while ($geocode_pending) {
$request_url = $base_url . "&q=" . urlencode($address_str);
$xml = simplexml_load_file($request_url) or die("url not loading");

$status = $xml->Response->Status->code;
if (strcmp($status, "200") == 0) {
        // Successful geocode
        $geocode_pending = false;
        $coordinates = $xml->Response->Placemark->Point->coordinates;
        $coordinatesSplit = explode(",", $coordinates);
        // Format: Longitude, Latitude, Altitude
        $lat = $coordinatesSplit[1];
        $lng = $coordinatesSplit[0];
} else if (strcmp($status, "620") == 0) {
        // sent geocodes too fast
        $delay += 100000;
} else {
        // failure to geocode
        $geocode_pending = false;
}
}

It works well on our Dev server. But, on the Production server, I
always get a 620 error.

What can I do ?
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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