Questions tagged [google-geocoder]

The Geocoding API is a service that provides geocoding and reverse geocoding of addresses.

The Geocoding API is a service that provides geocoding and reverse geocoding of addresses.

Geocoding is the process of converting addresses (like a street address) into geographic coordinates (like latitude and longitude), which you can use to place markers on a map, or position the map.

Reverse geocoding is the process of converting geographic coordinates into a human-readable address.

This service is also available as part of the client-side Google Maps JavaScript API, or for server-side use with the Java Client, Python Client, Go Client and Node.js Client for Google Maps Services.

971 questions
116
votes
9 answers

How can I find the latitude and longitude from address?

I want to show the location of an address in Google Maps. How do I get the latitude and longitude of an address using the Google Maps API?
Kandha
  • 3,539
  • 12
  • 32
  • 46
83
votes
4 answers

Lookup City and State by Zip Google Geocode Api

I basically want to retrieve a list of city and state within a zipcode. Is Google's Geocode API capable of doing so? I've tried looking into the documentation but found the information overwhelming. Any help would be appreciated. If there is…
meenxo
  • 1,146
  • 1
  • 11
  • 11
51
votes
26 answers

java.io.IOException: grpc failed

When I use call getFromLocationName I get an IOException with description "grpc failed". Code that's ran @Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; try { Geocoder geocoder = new…
Siqve
  • 527
  • 2
  • 5
  • 8
46
votes
3 answers

Service not Available - Geocoder Android

I have a little problem with the geocoder to get latitude and lontitude from an address : This is my code: for (Garage g : XMLGarage) { List
address; address = coder.getFromLocationName( g.getAddress(), 5); if (address != null) { Address…
Anass
  • 5,682
  • 6
  • 25
  • 35
39
votes
6 answers

OVER_QUERY_LIMIT while using google maps

I have a problem while acessing google maps from my application, when i send more than 10 requests in loop from java script i get the exception as OVER_QUERY_LIMIT from geocoder service. is there any way that i can get rid of this, i tried giving…
Sriharsha
  • 391
  • 1
  • 3
  • 3
33
votes
17 answers

Service not available while calling geoCoder.getFromLocation()

I know sometimes google back-end service might not be available. Hence a solution might be to loop until i get the data. private class getLocationDetails extends AsyncTask { @Override protected String…
Archie.bpgc
  • 22,633
  • 38
  • 142
  • 219
31
votes
6 answers

Why is Android Geocoder throwing a "Service not Available" exception?

The app uses the Geocoder object. It works fine on my stock Froyo Nexus One. But then I run the exact same app on a different device (an Advent Vega 10" tablet also running Froyo) and I get this exception: Service not Available. The method I'm using…
Ollie C
  • 27,184
  • 33
  • 125
  • 211
26
votes
9 answers

Geocoder.getFromLocation grpc failed on Android real device

I need to get the city and state from latitude and longitude. Geocoder does this function to get the city and state. But I am getting an error java.io.IOException: grpc failed in below line only on Android real device. It is working fine in…
26
votes
6 answers

Terms and Conditions Google Maps: Can I store lat/lng and address components?

This question has been asked in a few places on SO, but I've found the answers to be either slightly contradictory or "thin"... so I'm not sure if asking again will help but here goes. The google "help" page says that the google team maintains a…
Jimbo
  • 4,322
  • 2
  • 20
  • 43
23
votes
3 answers

geocoder.getFromLocation(); Timed out waiting for response from server

I have an Android App launched to market over 6 months, which uses geocoder.getFromLocation() to "translate" latitude and longitude to human readable addresses: Geocoder geocoder = new Geocoder(this, Locale.getDefault()); List
addresses =…
GordonWORK
  • 281
  • 2
  • 8
21
votes
5 answers

Latitude Longitude Coordinates to State Code in R

Is there a fast way to convert latitude and longitude coordinates to State codes in R? I've been using the zipcode package as a look up table but it's too slow when I'm querying lots of lat/long values If not in R is there any way to do this using…
Michael
  • 7,065
  • 18
  • 45
  • 74
19
votes
4 answers

Get only country specific result using google geocode api

I am using google geocode api for fetching lat long using postal code of singapore I have tried following to fetch data: (1) http://maps.googleapis.com/maps/api/geocode/json?address=505468&sensor=false (2)…
steve
  • 1,297
  • 4
  • 19
  • 33
19
votes
6 answers

How to get only City, State, Country from lat, long in android

I have the below code to convert lat, long to human readable address. Now iam getting full details including street name. How can i get only city, state, country? I don't want anything more details. Please help me. Geocoder geoCoder = new…
user1670443
  • 441
  • 2
  • 6
  • 17
15
votes
3 answers

Geocoder grpc failed

Last month of so geocoder has started to fail every time with "grpc failed" error and I can't seem to be able to solve it. I've looked at java.io.IOException: grpc failed but it didn't really solve the problem. For exampel the code Geocoder…
Mackan
  • 553
  • 1
  • 8
  • 18
15
votes
5 answers

PHP - Get Latitude & Longitude from an address

I have used the autocomplete of geocode but when I am selecting from the drop down it is giving me the lat and long of the address I need to check when the lat and long are empty then from the posted address I must get the latitude and longitude
khan Asim
  • 323
  • 1
  • 3
  • 13
1
2 3
64 65