How do I get an addresses latitude-longitude using HTML5 geolocation or Google API?

后端 未结 5 1211
清歌不尽
清歌不尽 2021-02-04 18:52

I am getting baffled with a problem that is, I can get the location of a user from Facebook and all I need is to get the latitude and longitude of that location, but I still cou

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 19:06

    Check out Gisgraphy a free an open source geo service.

    Everyone will tell you to use the Google Maps API but read the terms of use.

    (g) No Use of Content without a Google Map. You must not use or display the Content without a corresponding Google map, unless you are explicitly permitted to do so in the Maps APIs Documentation, or through written permission from Google. In any event, you must not use or display the Content on or in conjunction with a non-Google map. For example, you must not use geocodes obtained through the Service in conjunction with a non-Google map. As another example, you must not display Street View imagery alongside a non-Google map, but you may display Street View imagery without a corresponding Google map because the Maps APIs Documentation explicitly permits you to do so.

    So with the Google API you must use a Google Map. So if you need a map you're OK.

提交回复
热议问题