Search code examples
jsongoogle-mapsgoogle-maps-api-3google-geocoding-api

Google Map geocoding is not validating the correct address


I have correct address 700 Bay Rd Redwood City CA 94063 United States

But google map geocoding is not returning result for this address, I am using the url (removed the api key for here only): https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:94063|locality:Redwood%20City|administrative_area:CA

but when I removed the locality, it is working even though locality is same in response from below request https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:94063|administrative_area:CA

Can anybody help on this??


Solution

  • Recently, Google announced the new version of Geocoding API:

    https://googlegeodevelopers.blogspot.com.es/2016/11/address-geocoding-in-google-maps-apis.html

    This version is now default. It looks like your query is broken in the new geocoder, but works correctly in the old version:

    https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:94063|locality:Redwood%20City|administrative_area:CA&new_forward_geocoder=false&key=YOUR_API_KEY

    I would suggest reporting the issue in the public issue tracker.

    Hope it helps!