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

[Feature Request] Return coordinate based on Source + Distance + Bearing #17

Closed rurounijones closed 4 years ago

rurounijones commented 4 years ago

Looking for a nice small C# library for GIS stuff and this package looks very promising.

Would it be possible to add a method that returns a Coordinate based on a source + distance + bearing? e.g.

Coordinate origin = new Coordinate(34.0675918, -118.3977091);
double bearing = 124; // Degrees
double distance = 10000; // Meters
Coordinate destination = GeoCalculator.GetCoordinate(origin, bearing, distance);

I can probably implement this myself using https://adhamhurani.blogspot.com/2010/08/c-how-to-add-distance-and-calculate-new.html and submit a pull request if this is an acceptable feature (and could you let me know the method name you would prefer?)

rurounijones commented 4 years ago

Have since discovered that I am forced to use a different library which would complicate things. Closing this issue, sorry for the noise.