OVER_QUERY_LIMIT while using google maps
Probably you are sending too many requests per second and Google doesn’t let you do that. Read http://code.google.com/apis/maps/faq.html#geocoder_classorhttp
Probably you are sending too many requests per second and Google doesn’t let you do that. Read http://code.google.com/apis/maps/faq.html#geocoder_classorhttp
There is a problem recently with android devices and the geocoder not working: http://code.google.com/p/android/issues/detail?id=38009 A reboot seems to fix the issue
I can reproduce this issue (java.io.IOException: grpc failed), when there is no Internet connection on my real device.
Use the GeoCoding API For example, to lookup zip 77379 use a request like this: https://maps.googleapis.com/maps/api/geocode/json?address=77379&sensor=true&key=YOUR_GOOGLE_PLATFORM_API_KEY
public GeoPoint getLocationFromAddress(String strAddress) { Geocoder coder = new Geocoder(this); List<Address> address; GeoPoint p1 = null; try { address = coder.getFromLocationName(strAddress, 5); if (address == null) { return null; } Address location = address.get(0); location.getLatitude(); location.getLongitude(); p1 = new GeoPoint((double) (location.getLatitude() * 1E6), (double) (location.getLongitude() * 1E6)); return p1; } catch (IOException e) { e.printStackTrace(); … Read more