Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google GeoCoding API - returns ZERO_RESULTS but the location shows on Google Maps

I am using Google GeoCode API to search a location from an address and get LAT, LON information of that location.

From the API I always get ZERO_RESULTS where as if I search the address from the Google Maps, It shows me the location

The address I search for is,

5989 Route 6N, Edinboro, Pennsylvania, 16412, United States

Below given is the request that I sent to Google API,

https://maps.googleapis.com/maps/api/geocode/json?address=5989%20Route%206N%20Edinboro%20Pennsylvania%20United%20States%2016412&key={{API_KEY}}

Can anyone help me on resolving this?

Thanks!

like image 517
masterFly Avatar asked Oct 22 '25 00:10

masterFly


1 Answers

This was an issue in the Geocoding API: Issue 11031.

It has been fixed as of this week, so that Geocoding API will always return the same result/s as Google Maps:

https://maps.googleapis.com/maps/api/geocode/json?address=5989%20Route%206N%20Edinboro%20Pennsylvania%20United%20States%2016412

 "formatted_address" : "5989 Route 6n, Edinboro, PA 16412, USA",
like image 178
miguev Avatar answered Oct 25 '25 12:10

miguev