Questions tagged [google-geocoding-api]

The Google Geocoding API is a webservice for the Google Maps API. The Geocoding API provides a direct way to access a geocoder via an HTTP request, though it must be used in conjunction with Google Maps.

Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map.

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

The Google Geocoding API provides a direct way to access a these services via an HTTP request.

758 questions
9
votes
1 answer

What does each Android's location.Address method return?

I am trying to figure out exactly how to get address component with the Android SDK with the class android.location.Address. Some of the methods are very straightforward, other are easily understood with the examples in the documentation, but some…
Guilherme
  • 7,839
  • 9
  • 56
  • 99
9
votes
4 answers

Get City Name from Zip Code google geocoding

I've found code on this site to get the sate from a zipcode, but I also need to get the city name. Here is my code for getting the state: (Note I also use jQuery) var geocoder = new google.maps.Geocoder(); $('.zip').bind('change focusout',…
boruchsiper
  • 2,016
  • 9
  • 29
  • 53
8
votes
1 answer

How can I mock Google's Geocoding API request using mockito/powermock?

I want to unit test this method using mockito/powermock: @Service public class GoogleApiService { private static final Logger logger = LoggerFactory.getLogger(GoogleApiService.class); private static final String LANGUAGE = "es"; …
Matias Elorriaga
  • 8,880
  • 5
  • 40
  • 58
7
votes
5 answers

Is there way to do batch geocoding (get lat/lon by address and vice-versa)?

Google Geocoding API has serious limitations (2,500 requests per day) and we always get a limit error. Their business license costs $10,000 and it is too expensive for us. Service should work with different languages and different countries.…
Oleg Dats
  • 3,933
  • 9
  • 38
  • 61
7
votes
1 answer

TypeError: can't convert Net::HTTPOK into String

I'm using net/http and json to geocode an address using google's Geocoding API. Here is where the error is being thrown: response = Net::HTTP.get_response(URI.parse(url)) result = JSON.parse(response) The response is of class Net::HTTPOK, but I…
Chris
  • 11,819
  • 19
  • 91
  • 145
7
votes
2 answers

HttpClient GetAsync with query string

I am using Google's GeoCoding API. I have two methods where one works and the other doesn't and I can't seem to figure out why: string address = "1400,Copenhagen,DK"; string GoogleMapsAPIurl =…
Oliver Nilsen
  • 1,017
  • 2
  • 12
  • 32
7
votes
2 answers

http: server gave HTTP response to HTTPS client

I am using go to consume the google maps geocoding API, but I keep getting this error: The HTTP request failed with error Get https://maps.googleapis.com /maps/api/geocode/json?address=Bangalore&key=KEY: http: server gave HTTP response to HTTPS…
NobleSiks
  • 329
  • 2
  • 4
  • 17
7
votes
4 answers

Latitude, Longitude Grabber

What I would like to do is create app where when anyone clicks on the map object and two fields get filled with latitude and longitude at every click. Is there sample code of Google Maps V3 JavaScript API (Geocoding API) somewhere out there that…
7
votes
2 answers

Getting connection timed out error while GeoCoding in R

I have to geocode few addresses in R but getting a "Timeout was reached: Connection timed out after 10000 milliseconds" error. I am behind office firewall so tried to use proxy as well but still getting the same error. This works when I use source…
7
votes
3 answers

Google geocoding API returns ZERO_RESULTS for postal code

I am trying to geocode user entered data using the Google maps API, and got an error for the Australian postal code "2010" maps.google.com/maps/api/geocode/json?components=country:AU|postal_code:2010 However, if I search in Google maps, I get a…
ShIxtan
  • 71
  • 1
  • 6
7
votes
1 answer

Retrieve all localities and sub localities from given city google places API

I am looking for a web service or a Google place API kind of plugin to retrive localities,sub-localities and areas of the given city name. have been trying my hands with google and geonames but can't able to get through…
saikiran
  • 2,247
  • 5
  • 27
  • 42
7
votes
2 answers

Google Geocoding API returns wrong language in response

My project requests Geocoding API for coordinates and correct full addresses in Odessa, Ukraine. I could request response in Russian or Ukrainian language adding language=ru (language=uk) parameter to the HTTP request. Starting today I get street…
7
votes
1 answer

Google geocoding API - search in just one country

I am looking for geocodes with the google geocode-API: http://maps.googleapis.com/maps/api/geocode/json?address=london%c2+UK&sensor=false The problem is, that the input isn't very accurate (specially the street) and sometimes google mixes things up…
marty bourque
  • 734
  • 4
  • 7
  • 20
6
votes
4 answers

Find location by zip code

I am looking for a google API or any other API that returns me location ( in the form of latitude/longitude or place name ) Using Geocoder I can find lat,long as long as I know the name of place. It can we a web service or some query to some online…
AurA
  • 12,135
  • 7
  • 46
  • 63
6
votes
1 answer

Google Geocoding API request with cURL denied. I have an API key associated to a project with billing enabled

I'm attempting to access Google's Geocoding API with the following: curl https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=XXX I get back the following: {"error_message": You must use an API…
1
2
3
50 51