Location
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Đóng gói vị trí (điểm địa lý và tiêu đề tùy chọn).
Biểu diễn dưới dạng JSON |
{
"latLng": {
object (LatLng )
},
"heading": integer
} |
Trường |
latLng |
object (LatLng )
Toạ độ địa lý của điểm tham chiếu.
|
heading |
integer
Hướng la bàn liên kết với hướng cho phép lưu thông. Giá trị này chỉ định lề đường để đón và trả xe. Giá trị tiêu đề có thể từ 0 đến 360, trong đó 0 chỉ định một tiêu đề đến hạn là Bắc, 90 chỉ định một tiêu đề đến hạn Đông, v.v. Bạn chỉ có thể sử dụng trường này cho DRIVE và TWO_WHEELER RouteTravelMode .
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eLocation\u003c/code\u003e objects represent a geographic point with latitude and longitude coordinates, optionally including a compass heading.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eheading\u003c/code\u003e field, applicable to \u003ccode\u003eDRIVE\u003c/code\u003e and \u003ccode\u003eTWO_WHEELER\u003c/code\u003e travel modes, indicates traffic flow direction for pickup/drop-off, ranging from 0 (North) to 360 degrees.\u003c/p\u003e\n"]]],["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"],null,["# Location\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nEncapsulates a location (a geographic point, and an optional heading).\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------|\n| ``` { \"latLng\": { object (/maps/documentation/routes/reference/rest/v2/LatLng) }, \"heading\": integer } ``` |\n\n| Fields ||\n|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `latLng` | `object (`[LatLng](/maps/documentation/routes/reference/rest/v2/LatLng)`)` The waypoint's geographic coordinates. |\n| `heading` | `integer` The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` [`RouteTravelMode`](/maps/documentation/routes/reference/rest/v2/RouteTravelMode). |"]]