Geocoordinate

Namespace: XPlat.Device.Geolocation

Contains the information for identifying a geographic location.

public class Geocoordinate : IGeocoordinate

Supported platforms

Platform

Version

.NET Standard

2.0

Xamarin.Android

9.0

Xamarin.iOS

1.0

UWP

10.0.16299

Constructors

Geocoordinate()

Default constructor.

Geocoordinate(Windows.Devices.Geolocation.Geocoordinate) - Windows

Parameters

coordinate (Windows.Devices.Geolocation.Geocoordinate)

The Windows Geocoordinate which will be used to populate the field values.

Geocoordinate(Android.Locations.Location) - Android

Parameters

location (Android.Locations.Location)

The Android Location which will be used to populate the field values.

Geocoordinate(CoreLocation.CLLocation) - iOS

Parameters

location (CoreLocation.CLLocation)

The iOS CLLocation which will be used to populate the field values.

Properties

Latitude

Gets or sets the latitude in degrees. The valid range of values is from -90.0 to 90.0.

Longitude

Gets or sets the longitude in degrees. The valid range of values is from -180.0 to 180.0.

Altitude

Gets or sets the altitude of the location, in meters.

Accuracy

Gets or sets the accuracy of the location in meters.

Heading

Gets or sets the current heading in degrees relative to true north.

Speed

Gets or sets the speed in meters per second.

Timestamp

Gets or sets the system time at which the location was determined.

Point

Gets or sets the location of the Geocoordinate.

Last updated