LatLng
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
代表經緯度組合的物件。以一對雙精準數表示經度度數和緯度度數。除非另有指定,否則這個物件必須符合 WGS84 標準。此外,值必須在正規化範圍內。
JSON 表示法 |
{
"latitude": number,
"longitude": number
} |
欄位 |
latitude |
number
緯度度數,必須介於 [-90.0, +90.0] 的範圍之間。
|
longitude |
number
經度度數,必須介於 [-180.0, +180.0] 的範圍之間。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[],[],null,["# LatLng\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAn object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the [WGS84 standard](https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version). Values must be within normalized ranges.\n\n| JSON representation |\n|-----------------------------------------------------|\n| ``` { \"latitude\": number, \"longitude\": number } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------------------------|\n| `latitude` | `number` The latitude in degrees. It must be in the range \\[-90.0, +90.0\\]. |\n| `longitude` | `number` The longitude in degrees. It must be in the range \\[-180.0, +180.0\\]. |"]]