Package google.type
LatLng
代表經緯度組合的物件。以一對雙精準數表示經度度數和緯度度數。除非另有指定,否則這個物件必須符合 WGS84 標準。此外,值必須在正規化範圍內。
欄位 |
latitude |
double
緯度度數,必須介於 [-90.0, +90.0] 的範圍之間。
|
longitude |
double
經度度數,必須介於 [-180.0, +180.0] 的範圍之間。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[null,null,["上次更新時間:2023-12-01 (世界標準時間)。"],[[["LatLng is a message object used to represent a latitude/longitude pair using a pair of doubles conforming to the WGS84 standard."],["Latitude values must be within the range of -90.0 to +90.0 degrees, while longitude values must be within the range of -180.0 to +180.0 degrees."]]],["The core content describes the `LatLng` object, which represents a latitude/longitude pair using double values for degrees. It adheres to the WGS84 standard and requires normalized values. The `latitude` field, a double, must be within the range of -90.0 to +90.0 degrees. The `longitude` field, also a double, must be within the range of -180.0 to +180.0 degrees. These are the only fields and their value ranges.\n"]]