How to find distance between two points using latitude and longitude

后端 未结 3 1549
长发绾君心
长发绾君心 2021-01-29 00:30

I have a ROUTES table which has columns SOURCE_AIRPORT and DESTINATION_AIRPORT and describes a particular route that an airplane would take to get from one to the other.

3条回答
  •  忘掉有多难
    2021-01-29 01:11

    There is a formula called great circle distance to calculate distance between two points. You probably can load is as a library for your operating system. Forget the haversine, our planet is not a perfect sphere. If you use this value often, save it in your routes table.

提交回复
热议问题