Get the shortest distance from a point

前端 未结 8 572
长发绾君心
长发绾君心 2021-01-01 06:36

I have this table in sqlite

Locations
ID
Lat ( latitude)
Lon ( longitude) 
Type
Name
City

I have for example 100 records what I need is to

8条回答
  •  耶瑟儿~
    2021-01-01 07:06

    Have you check this Site of how to count for the distance between two points on Earth?

    But just keep in mind that it give the Distance based on Earth Surface not based on the actual path to reach at that position. So if you want to count distance based on the Actual Path to reach that position then you can get it by using Google MAP API.

    Google Maps API gives the distance between two point based on the actual path.

    Hope this information surly help you.

    Enjoy Coding... :)

提交回复
热议问题