Location
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สรุปสถานที่ตั้ง (จุดทางภูมิศาสตร์และส่วนหัวที่ไม่บังคับ)
การแสดง JSON |
{
"latLng": {
object (LatLng )
},
"heading": integer
} |
ช่อง |
latLng |
object (LatLng )
พิกัดทางภูมิศาสตร์ของจุดอ้างอิง
|
heading |
integer
ทิศทางทิศทางของเข็มทิศ ค่านี้จะระบุฝั่งถนนสำหรับการรับและส่ง ค่าของส่วนหัวอาจเป็นตั้งแต่ 0 ถึง 360 โดย 0 หมายถึงส่วนหัวของทิศเหนือที่ครบกำหนด 90 หมายถึงส่วนหัวของทิศตะวันออกที่ครบกำหนด และอื่นๆ คุณสามารถใช้ช่องนี้สำหรับ DRIVE และ TWO_WHEELER RouteTravelMode เท่านั้น
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[[["`Location` objects represent a geographic point with latitude and longitude coordinates, optionally including a compass heading."],["The `heading` field, applicable to `DRIVE` and `TWO_WHEELER` travel modes, indicates traffic flow direction for pickup/drop-off, ranging from 0 (North) to 360 degrees."]]],["The provided JSON structure defines a location using latitude and longitude coordinates (`latLng`). It also includes an optional `heading` field, an integer from 0 to 360, representing the compass direction of traffic flow. The `heading` is applicable only for `DRIVE` and `TWO_WHEELER` travel modes and is intended for specifying the road side for pickup or drop-off actions. The `latLng` field itself is a geographic point.\n"]]