Show / Hide Table of Contents

Class Location

Provides data for a single location, including position, course, velocity, and accuracy.

Inheritance
object
Location
NmeaLocation
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Esri.ArcGISRuntime.Location
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Location

Constructors

Name Description
Location(MapPoint, double, double, double, bool)

Initializes a new instance of the Location class.

Location(DateTimeOffset?, MapPoint, double, double, double, double, bool)

Initializes a new instance of the Location class with a known timestamp.

Location(DateTimeOffset?, MapPoint, double, double, double, double, bool, IEnumerable<KeyValuePair<string, object?>>)

Initializes a new instance of the Location class with timestamp and additional source properties.

Properties

Name Description
AdditionalSourceProperties

Gets a set of key-value pairs that provide additional metadata, such as source and accuracy details of this Location.

Course

Gets the course of the device in degrees, or NaN if not available.

HorizontalAccuracy

Gets the estimated horizontal accuracy of the location in meters

IsLastKnown

Gets a value indicating whether this is an outdated device position retrieved and cached earlier and therefore not guaranteed to represent the current location.

Position

Gets the horizontal and vertical position of the location

Timestamp

Gets the timestamp when this location was recorded (if available).

Velocity

Gets the velocity of the device in meters per second

VerticalAccuracy

Gets the vertical accuracy of this location in meters.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

Relevant samples

Find place: Find places of interest near a location or within a specific area.
Navigate route: Use a routing service to navigate between points.
Show location history: Display your location history on the map.
In this article
Provide feedback
Back to top Copyright © 2025 Esri.