Geolocation closest location(lat, long) from my position

前端 未结 3 1793
感情败类
感情败类 2020-11-30 21:23

I want to show specific information depending on where i am.

I have five cities with different information, and i want to show that city(information) that i\'m close

3条回答
  •  渐次进展
    2020-11-30 22:05

    You can calculate the distance by latitude with your location and the cities locations. And find the shortest and draw. To calculate you can read more in http://www.movable-type.co.uk/scripts/latlong.html

提交回复
热议问题