Google maps API geocoding returns same coordinates for two different places

前端 未结 2 1102
清酒与你
清酒与你 2021-01-03 17:35

I\'m trying to get the coords for these POI but Google Geocoding returns wrong coords, the same coords for both addresses. In the Google Maps they work fine. How should I co

2条回答
  •  别那么骄傲
    2021-01-03 18:16

    Those are "places" not postal addresses. They both resolve to the same "address" as far as the geocoder is concerned ("Corfu, Greece"). If you need to include the "place name" (you don't have a complete postal address), use the Places API

    Some major points of interest are included in the geocoding database (like "Eiffel Tower", "Statue of Liberty", "Cologne Cathedral") but not all.

提交回复
热议问题