Geoinformation Google Geography
I have a weird problem. All of a sudden, my PHP implementation of the Google Geocoding API just decided to stop working. Now it returns error 602 on every request, meaning the address is not available. But, if I open the actual url that I am requesting, it works fine and I can download the correct information. But if I use curl to grab it, 602 is returned instead of 200.
I tried to change the API key and also check and validate the url.
a source to share
I used to add my country ("Australia") to the geocoding search bar to restrict free-form text searches to a "local" address. It seemed to kill him.
geocoder.geocode(event.arg + "Australia");
Now I add this to the constructor (ActionScript, but probably applies to other languages)
var geocoder:ClientGeocoder = new ClientGeocoder(
new ClientGeocoderOptions({
countryCode: "AU",
language: 'en'/
}));
a source to share
I am using the following method for geocoding. You can try this to make sure it's not a cURL problem.
$request_url = $base_url . "&q=" . urlencode($address);
$xml_string = file_get_contents($request_url);
$xml_string = str_replace('xmlns=', 'ns=', $xml_string);
$xml = simplexml_load_string($xml_string);
Also, if you haven't seen this tutorial on geocoding with PHP, be sure to check it out.
a source to share
This is a late answer.
According to http://code.google.com/intl/en/apis/maps/documentation/geocoding/ ,
The Maps API key is no longer required.
Note: There is no Google Geocoding API for longer use, a Maps API key is required! Google Google Maps API clients must additionally sign their URLs using a new cryptographic key.
However, there is a limit.
Using the Google Geocoding API, provided the request limit is 2500 geolocation requests per day. (A Google Maps API Premier user can make up to 100,000 requests per day.) There is a limit to prevent abuse and / or duplication of API geocoding, and this limit is subject to change in the future without notice. In addition, we use a request to prevent abuse of the provision of services. If you exceed the 24-hour limit or otherwise abuse the service, the geocoding API may stop working you temporarily. If you continue to exceed this limit, your access to the geocoding API may be blocked.
A workaround to the limit is to request geocodes using many proxies at the same time. If you have 10 proxies with different IP addresses, you can request 25,000 geocodes daily.
a source to share