Share via


Geocoordinate Class

Definition

Contains the information for identifying a geographic ___location.

public ref class Geocoordinate sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class Geocoordinate final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class Geocoordinate
Public NotInheritable Class Geocoordinate
Inheritance
Object Platform::Object IInspectable Geocoordinate
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
___location

Remarks

The Geocoordinate class represents a geographic ___location with associated metadata about accuracy, positioning method, and optional movement data.

Key properties

Always available

  • Latitude: Represents the latitude coordinate in degrees.
  • Longitude: Represents the longitude coordinate in degrees.
  • Accuracy: Indicates the accuracy of the position in meters.
  • Timestamp: Indicates when the position was determined.

Conditionally available

  • Altitude: Provides the height above sea level when available from GNSS or other altitude-capable sources.
  • AltitudeAccuracy: Reports the accuracy of altitude measurements.
  • Heading: Indicates the direction of travel in degrees from true north.
  • Speed: Reports the speed of movement in meters per second.

Additional information

  • PositionSource: Identifies whether the ___location came from GNSS, cellular, Wi-Fi, or other sources.
  • SatelliteData: Provides additional GNSS satellite information when available.

Data availability and null handling

Important

Always check for null values before using Altitude, AltitudeAccuracy, Heading, and Speed properties. These are only provided when the positioning system can determine them.

Note

The PositionSource property indicates the primary method used to determine the ___location. This can help you assess the relative reliability and characteristics of the position data.

Retrieve an instance of this class using the Geoposition.Coordinate property from a Geolocator operation.

Properties

Accuracy

The accuracy of the ___location in meters.

Altitude

The altitude of the ___location, in meters.

AltitudeAccuracy

The accuracy of the altitude, in meters.

Heading

The current heading in degrees relative to true north.

IsRemoteSource

Gets a value that indicates whether the current ___location reported by this Geocoordinate object is being redirected to a remote physical ___location.

Latitude

The latitude in degrees.

Longitude

The longitude in degrees.

Point

The ___location of the Geocoordinate.

PositionSource

Gets the source used to obtain a Geocoordinate.

PositionSourceTimestamp

Gets the time at which the associated Geocoordinate position was calculated.

SatelliteData

Gets information about the satellites used to obtain a Geocoordinate.

Speed

The speed in meters per second.

Timestamp

The system time at which the ___location was determined.

Applies to

See also