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, Boolean)

Initializes a new instance of the Location class.

Location(Nullable<DateTimeOffset>, MapPoint, Double, Double, Double, Double, Boolean)

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

Location(Nullable<DateTimeOffset>, MapPoint, Double, Double, Double, Double, Boolean, 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 providing additional meta-data and properties about the source 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.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0

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
Back to top Copyright © 2022 Esri.