How to solve the Difference between Google Maps and Geocoding?

前端 未结 2 663
无人共我
无人共我 2021-01-21 11:44

OK here is an odd situation. This I have been facing from long time on so many Maps I have created.

Here is one sample address :

Hotel Tamisa Golf, Cam         


        
相关标签:
2条回答
  • 2021-01-21 11:56

    That "address" is a "place" not a "postal address".

    The geocoder finds the coordinates associated with a postal address, looks like it thinks the address is "Urbanización Mijas Golf, 13S, 29651 Mijas, Málaga, Spain": geocode

    The places API finds "places": place

    0 讨论(0)
  • 2021-01-21 12:10

    For the address you mentioned, the geocode is returning more than one results, you need to handle all the results. see your answer here.

    EDIT: The Google Place search API can help you here, for more detail see this. Sample example is here at jsFiffle.

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