GeoCoordinate GeoCoordinate GeoCoordinate GeoCoordinate Class

定義

表示緯度與經度座標所決定的地理位置。Represents a geographical location that is determined by latitude and longitude coordinates. 也可能包含高度、精確度、速度和路線等資訊。May also include altitude, accuracy, speed, and course information.

public ref class GeoCoordinate : IEquatable<System::Device::Location::GeoCoordinate ^>
public class GeoCoordinate : IEquatable<System.Device.Location.GeoCoordinate>
type GeoCoordinate = class
    interface IEquatable<GeoCoordinate>
Public Class GeoCoordinate
Implements IEquatable(Of GeoCoordinate)
繼承
GeoCoordinateGeoCoordinateGeoCoordinateGeoCoordinate
實作

建構函式

GeoCoordinate() GeoCoordinate() GeoCoordinate() GeoCoordinate()

初始化不含資料欄位集之 GeoCoordinate 的新執行個體。Initializes a new instance of GeoCoordinate that has no data fields set.

GeoCoordinate(Double, Double) GeoCoordinate(Double, Double) GeoCoordinate(Double, Double) GeoCoordinate(Double, Double)

從緯度及經度資料初始化 GeoCoordinate 類別的新執行個體。Initializes a new instance of the GeoCoordinate class from latitude and longitude data.

GeoCoordinate(Double, Double, Double) GeoCoordinate(Double, Double, Double) GeoCoordinate(Double, Double, Double) GeoCoordinate(Double, Double, Double)

從緯度、經度和高度資料,初始化 GeoCoordinate 類別的新執行個體。Initializes a new instance of the GeoCoordinate class from latitude, longitude, and altitude data.

GeoCoordinate(Double, Double, Double, Double, Double, Double, Double) GeoCoordinate(Double, Double, Double, Double, Double, Double, Double) GeoCoordinate(Double, Double, Double, Double, Double, Double, Double) GeoCoordinate(Double, Double, Double, Double, Double, Double, Double)

從緯度、經度、高度、水平精確度、垂直精確度、速度和路線,初始化 GeoCoordinate 的新執行個體。Initializes a new instance of the GeoCoordinate class from latitude, longitude, altitude, horizontal accuracy, vertical accuracy, speed, and course.

欄位

Unknown Unknown Unknown Unknown

表示含有不明緯度及經度欄位的 GeoCoordinate 物件。Represents a GeoCoordinate object that has unknown latitude and longitude fields.

屬性

Altitude Altitude Altitude Altitude

取得 GeoCoordinate 的高度 (以公尺為單位)。Gets the altitude of the GeoCoordinate, in meters.

Course Course Course Course

取得或設定相對於真北方的航向 (以度為單位)。Gets or sets the heading in degrees, relative to true north.

HorizontalAccuracy HorizontalAccuracy HorizontalAccuracy HorizontalAccuracy

取得或設定 GeoCoordinate 所指定之緯度與經度的精確度 (以公尺為單位)。Gets or sets the accuracy of the latitude and longitude that is given by the GeoCoordinate, in meters.

IsUnknown IsUnknown IsUnknown IsUnknown

取得值,這個值表示 GeoCoordinate 是否不含緯度或經度資料。Gets a value that indicates whether the GeoCoordinate does not contain latitude or longitude data.

Latitude Latitude Latitude Latitude

取得或設定 GeoCoordinate 的緯度。Gets or sets the latitude of the GeoCoordinate.

Longitude Longitude Longitude Longitude

取得或設定 GeoCoordinate 的經度。Gets or sets the longitude of the GeoCoordinate.

Speed Speed Speed Speed

取得或設定每秒的速度 (以公尺為單位)。Gets or sets the speed in meters per second.

VerticalAccuracy VerticalAccuracy VerticalAccuracy VerticalAccuracy

取得或設定 GeoCoordinate 所指定之高度的精確度 (以公尺為單位)。Gets or sets the accuracy of the altitude given by the GeoCoordinate, in meters.

方法

Equals(GeoCoordinate) Equals(GeoCoordinate) Equals(GeoCoordinate) Equals(GeoCoordinate)

僅根據緯度及經度,判斷 GeoCoordinate 物件是否等於參數。Determines if the GeoCoordinate object is equivalent to the parameter, based solely on latitude and longitude.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

僅根據緯度及經度,判斷指定的 GeoCoordinate 是否等於目前的 GeoCoordinateDetermines if a specified GeoCoordinate is equal to the current GeoCoordinate, based solely on latitude and longitude.

GetDistanceTo(GeoCoordinate) GetDistanceTo(GeoCoordinate) GetDistanceTo(GeoCoordinate) GetDistanceTo(GeoCoordinate)

傳回由這個 GeoCoordinate 及另一個指定的 GeoCoordinate 所指定緯度與經度座標之間的距離。Returns the distance between the latitude and longitude coordinates that are specified by this GeoCoordinate and another specified GeoCoordinate.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為 GeoCoordinate 的雜湊函式。Serves as a hash function for the GeoCoordinate.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回包含緯度與經度的字串。Returns a string that contains the latitude and longitude.

運算子

Equality(GeoCoordinate, GeoCoordinate) Equality(GeoCoordinate, GeoCoordinate) Equality(GeoCoordinate, GeoCoordinate) Equality(GeoCoordinate, GeoCoordinate)

判斷兩個 GeoCoordinate 物件是否參考相同的位置。Determines whether two GeoCoordinate objects refer to the same location.

Inequality(GeoCoordinate, GeoCoordinate) Inequality(GeoCoordinate, GeoCoordinate) Inequality(GeoCoordinate, GeoCoordinate) Inequality(GeoCoordinate, GeoCoordinate)

判斷兩個 GeoCoordinate 物件是否對應至不同的位置。Determines whether two GeoCoordinate objects correspond to different locations.

適用於