How to calculate the current position in a large circle

Given the starting point (origLat, origLon), the ending point (destLat, destlon) and the% completion of the trip. How to calculate the current position (curLat, curLon)?

+3
source share
3 answers

The aviation form is an excellent resource that covers this issue and much more.

+9
source

MTL provides good content for large circle calculations and some work applets that you can use to test your implementation.

+3
source

:

curLat = origLat + percentageOfTripCompleted*(destLat-origLat);
curLon = origLon + percentageOfTripCompleted*(destLon-origLon);

* , , .

-3

Source: https://habr.com/ru/post/1770325/


All Articles