How to calculate longitude and latitude at a given distance along a large circle?

I want to overlay large circular arcs between airports on a map using longitude and latitude. I can already get the distance and support from the source and destination coordinates, but now I need to create points on the curve for projection.

I would like it to be a formula that takes its origin, destination and distance, and returns the latitude / longitude of the point lying at that distance on the path between the start and destination.

I am currently approaching the earth with a sphere and using radians - eventually I will add spheroid corrections.

+4
source share
1 answer
currlat = oldlat + d * sin (angle)/ (radius); currlon = oldlon + d * cos (angle)/ (radius * cos(oldlat)); 

where d is the distance traveled and the angle is in radians. This implies a land circumference of 40,000 km both at the equator and across the poles. You can convert in radians ...

He also suggests that the angle (direction) refers to the equator line.

Obviously, this requires correction of the spheroid.

if you go south, the values โ€‹โ€‹of sin will become negative, and in the north - positive. If you go west, it will become negative, and in the east it will become positive.

d * sin (angle) and d * cos (angle) gives you changes. and you just calculate the new lat / long based on the fact that it scales along the circumference of the earth.

+2
source

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


All Articles