Geocoordinate 類別

定義

包含用來識別地理位置的資訊。

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
繼承
Object Platform::Object IInspectable Geocoordinate
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
location ID_CAP_LOCATION [Windows Phone]

備註

使用 Geoposition.Coordinate 屬性擷取這個類別的實例。

一律會提供 緯度經度精確度 屬性的值。 如果可用,則會提供 高度高度AccuracyHeadingSpeed 屬性的值。 如果無法使用,則 JavaScript 程式碼中會是 Null

屬性

Accuracy

以公尺為單位的位置精確度。

Altitude

注意

在Windows 8.1和Windows Phone 8.1 之後,高度可能會改變或無法使用。 請改用 Geocoordinate.Point

位置的高度,以公尺為單位。

AltitudeAccuracy

高度精確性 (以公尺為單位)。

Heading

相對於 true north 的目前標題。

IsRemoteSource

取得值,這個值表示這個 Geocoordinate 物件所報告的目前位置是否要重新導向至遠端實體位置。

Latitude

注意

在 Windows 8.1 和 Windows Phone 8.1 之後,緯度可能會改變或無法使用。 請改用 Geocoordinate.Point

緯度以度為單位。

Longitude

注意

在 Windows 8.1 和 Windows Phone 8.1 之後,經度可能會改變或無法使用。 請改用 Geocoordinate.Point

經度以度為單位。

Point

Geocoordinate 的位置。

PositionSource

取得用來取得 Geocoordinate 的來源。

PositionSourceTimestamp

取得計算相關聯 Geocoordinate 位置的時間。

SatelliteData

取得用來取得 Geocoordinate 的衛星相關資訊。

Speed

每秒的速度 (以公尺為單位)。

Timestamp

決定位置的系統時間。

適用於