Skip to content

A port of GeoCoordinate class to .Net Standard along with added functionality

Notifications You must be signed in to change notification settings

DemetriouJohn/GeoCoordinate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoCoordinate

.NET Core Build and Run Unit Tests

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

  1. Object is immutable. Once created, it can not be edited.
  2. Distance calculation can be done in three possible ways (using three different formulas)
    • Haversine Formula
    • Spherical law of Cosines
    • Vicenty's formula
  3. ToString method has overload for printing in DMS format
  4. GetBearing method to calculate azimuth between two points
  5. Deconstructors exist to break down the object to Lat/Lon and Lat/Lon/Alt
  6. 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

Contributing

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.

About

A port of GeoCoordinate class to .Net Standard along with added functionality

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages