Hey all, I am receiving 610 errors intermittently on this call:
function btnSearch_Click() {
var code = document.getElementById("txtPostalCode").value;
if (code == null || trimString(code) == "" || code ==
"City, State, or Zip") { return; }
var geocoder = new GClientGeocoder();
var point = geocoder.getLocations(code, getCoords);
//var point = geocoder.getLatLng(code, getCoords);
}
function getCoords(response) {
var addy = document.getElementById("txtPostalCode").value;
var url;
if (!response || response.Status.code != G_GEO_SUCCESS) {
url = "locator_error.aspx?response=" +
response.Status.code;
location.replace(url);
} else {
place = response.Placemark[0];
point = new GLatLng(place.Point.coordinates[1],
place.Point.coordinates[0]);
url = "SearchResults.aspx?address=" + addy +
"&coords=" + point.toUrlValue();
location.replace(url);
}
}
I cannot reproduce it myself but I am seeing it in my error log a few
times a day (over 1000 hits per day). API key is valid and senser is
set to false.
<script type="text/javascript" src="http://maps.google.com/maps?
file=api&v=2&sensor=false&key=MyApiKey"></script>
--
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.