Sanchaeg 1.0.1
dotnet add package Sanchaeg --version 1.0.1
NuGet\Install-Package Sanchaeg -Version 1.0.1
<PackageReference Include="Sanchaeg" Version="1.0.1" />
<PackageVersion Include="Sanchaeg" Version="1.0.1" />
<PackageReference Include="Sanchaeg" />
paket add Sanchaeg --version 1.0.1
#r "nuget: Sanchaeg, 1.0.1"
#:package Sanchaeg@1.0.1
#addin nuget:?package=Sanchaeg&version=1.0.1
#tool nuget:?package=Sanchaeg&version=1.0.1
Sanchaeg
A modern .NET implementation of high-accuracy geography functions using Vincenty's formulae, including
- calculating distance between two points,
- calculating intersection between coordinate - bearing pairs,
- calculating resulting coordinate for an origin, bearing and distance,
- conversion between lat/lon and x/y coordinates using various Datums.
The also library includes various useful epsilon values for geography related calculations, and built-in values for WGS84, EPSG3857, GRS80, Airy1830, AiryModified, Intl1924 and Bessel1841 datums.
Usage
All the complexity is hidden away behind convenient extension methods:
using Sanchaeg;
// ...
var point1 = new SanchaegGeoCoordinate
{
Latitude = 47.438437
Longitude = 19.252274
};
var point2 = new SanchaegGeoCoordinate
{
Latitude = 47.6445436,
Longitude = -122.1370065
};
var distance = point1.CalculateDistanceBetween(point2);
Console.WriteLine($"Distance: {distance} meters");
The "usual" *Coordinate types are specifically prefixed Sanchaeg in this library to make differentiation easy between whatever else *Coordinate types you might have on your end.
Thanks
This library contains many of its calculations transcoded from Chris Veness's excellent post & library, Chris Veness © 2002-$currentYear published under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.