UmbGeo 15.0.3

dotnet add package UmbGeo --version 15.0.3
                    
NuGet\Install-Package UmbGeo -Version 15.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="UmbGeo" Version="15.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="UmbGeo" Version="15.0.3" />
                    
Directory.Packages.props
<PackageReference Include="UmbGeo" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add UmbGeo --version 15.0.3
                    
#r "nuget: UmbGeo, 15.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=UmbGeo&version=15.0.3
                    
Install UmbGeo as a Cake Addin
#tool nuget:?package=UmbGeo&version=15.0.3
                    
Install UmbGeo as a Cake Tool

UmbGeo

A package that gives you a property editor for Geo Coordinates.

Since .net core 3.0, the System.Device.Location namespace is no longer available. This package provides a property editor for the GeoCoordinate class.

This package uses a third party library that gives us these classes. The library is called GeoCoordinate.Core. For more information about the library, visit the GitHub page for it here.

Installation

To install this package, you can use dotnet add package or find via the NuGet package manager.

dotnet add package UmbGeo in your console.

Usage

GetDistanceTo()

Displays the distance between the current geolocation and the given coordinate in meters.

@Model.PropertyEditor.GetDistanceTo(new Coordinate(4, 20, 10))

IsWithinDistanceTo()

Returns a bool that checks if the current coordinates are within the given distance to the given coordinate.

@Model.PropertyEditor.IsWithinDistanceTo(new Coordinate(4, 20, 10), 1000)`

ToPrettyString()

Returns a human-readable string of the coordinate in a degrees, minutes, and seconds (DMS) format with N/S and E/W suffixes.

@Model.PropertyEditor.ToPrettyString()

Parse()

Parses a coordinate string in the format "latitude|longitude|elevation" and returns a new <c>Coordinate</c> object.

@{
    var coordinateString = "45|90|100";
}

@Coordinate.Parse(coordinateString)

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.