scottschluer / geolocation

A C# class library that will calculate distance and cardinal direction between two sets of coordinates and provides the lat/long boundaries around an origin coordinate allowing for simple SQL or LINQ selection of locations within the given radius.
MIT License
203 stars 46 forks source link

True Bearing vs. Magnetic #21

Open Spicy-Bread opened 2 years ago

Spicy-Bread commented 2 years ago

Hello,

I'd like to make a request for the bearing method to return both true and magnetic bearing.

Thanks

MartinGlob commented 2 years ago

That is really difficult for several reasons.

MH = TH + Variation.

So you'd have to know variation based on isogonic lines around the world. And they change slowly every year.

And the variation changes depending on your location - so going from A to B will have a single TH, but your MH will change all the time.