UmbGeo 17.0.0

dotnet add package UmbGeo --version 17.0.0
                    
NuGet\Install-Package UmbGeo -Version 17.0.0
                    
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="17.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="UmbGeo" Version="17.0.0" />
                    
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 17.0.0
                    
#r "nuget: UmbGeo, 17.0.0"
                    
#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.
#:package UmbGeo@17.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=UmbGeo&version=17.0.0
                    
Install as a Cake Addin
#tool nuget:?package=UmbGeo&version=17.0.0
                    
Install 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))

If you are using this helper method, you will need to import the library GeoCoordinates.Core


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)`

If you are using this helper method, you will need to import the library GeoCoordinates.Core


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 net10.0 is compatible.  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. 
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.

Version Downloads Last Updated
17.0.0 220 1/5/2026
16.0.4 204 10/17/2025
16.0.3 210 10/13/2025
16.0.2 233 10/13/2025
16.0.1 330 9/19/2025
16.0.0 297 9/15/2025
15.1.3 245 7/18/2025
15.1.2 219 7/7/2025
15.1.1 180 7/4/2025
15.1.0 174 7/4/2025
Loading failed