Google Maps API sometimes not returning PostalCode within AddressDetails

后端 未结 1 608
灰色年华
灰色年华 2020-12-21 12:24

I created a function to take location input, pass it to Google Maps Javascript API V2, and return a latitude/longitude/normalized address that I\'ll have to split in

相关标签:
1条回答
  • 2020-12-21 12:43

    This has been a problem ever since the geocoding service existed.

    For a bit of background, see the "bug report/feature request" I posted to the issue tracker in 2008:

    http://code.google.com/p/gmaps-api-issues/issues/detail?id=606

    In that thread, Pamela Fox and Thor Mitchell are Google employees who were part of the Maps team at the time.

    A year and a half later, Google responded with some improvements:

    https://groups.google.com/group/google-maps-api/browse_thread/thread/4d0ade19dadcda4f#

    and things improved a lot, but geocoding is not an exact science.

    In any case, you might be using an old version of the geocoder because I get a postal code with this request:

    http://maps.google.com/maps/api/geocode/xml?sensor=false&address=10437%20Innovation%20Drive,%20Milwaukee,%20WI

    That's a direct http request, but the API V3 should be returning the same data.

    0 讨论(0)
提交回复
热议问题