A re-implementation of GeoCoordinate class for .Net standard.
This class is not an exact clone of System.Device.Location but an extension of the functionality of the original.
You can install package by calling Install-Package ExtendedGeoCoordinate
Differences between this class and the Microsoft default class are
- Object is immutable. Once created, it can not be edited.
- Distance calculation can be done in three possible ways (using three different formulas)
- Haversine Formula
- Spherical law of Cosines
- Vicenty's formula
- ToString method has overload for printing in DMS format
- GetBearing method to calculate azimuth between two points
- Deconstructors exist to break down the object to Lat/Lon and Lat/Lon/Alt
- Added support for altitude Units
Project will be supported, maintained and upgraded until Microsoft ports GeoCoordinate class to .Net Standard.
Link to nuget Gallery here
Contributions are always welcome! Please feel free to submit pull requests and to open issues. I prefer to have tests on all public methods if possible and where ever else makes sense.