C# Calculate n Number of Points along a Great Circle path between Two Latitude/Longitude points
-
20-09-2019 - |
Question
I am plotting flight paths between Airports that I have Latitude and Longitude values for onto a Google Map (v3 of the API).
However unlike v2, v3 does not seem to have an option to put a Polyline on the map between two points and have it display as the great-circle flightpath.
So what I was thinking, was that it might be possible to calculate a number of points along a great-circle path between two Latitude/Longitude points.
I'm terrible with maths and I can hardly understand or comprehend how the great-circle calculations work. Does anyone know of a C# library or code snippit that can take two latitude and longitude points and calculate a number of points along the great-circle path between them ?
Solution
Take a look at Mike Gavaghan's C# Geodesy Library.