Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
Location
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"latLng": {
object (LatLng )
},
"heading": integer
} |
字段 |
latLng |
object (LatLng )
航点的地理坐标。
|
heading |
integer
与交通流方向相关联的罗盘方向。此值用于指定上车点和下车点所在的道路边。航向值介于 0 到 360 之间,其中 0 表示正北,90 表示正东,依此类推。此字段仅适用于 DRIVE 和 TWO_WHEELER 出行方式。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eThe JSON object represents a location with geographic coordinates and an optional heading.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003elatLng\u003c/code\u003e field denotes the waypoint's coordinates using the LatLng object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eheading\u003c/code\u003e is an optional integer field indicating traffic flow direction, relevant for \u003ccode\u003eDRIVE\u003c/code\u003e and \u003ccode\u003eTWO_WHEELER\u003c/code\u003e travel modes.\u003c/p\u003e\n"]]],["The content describes a location represented in JSON, which includes geographic coordinates (`latLng`) and an optional compass heading. `latLng` specifies the location's coordinates, while `heading` indicates the direction of traffic flow, relevant for `DRIVE` and `TWO_WHEELER` modes. The heading value ranges from 0 to 360, with 0 being North and 90 East. This structure defines a waypoint's location and directional context for specific travel modes.\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_preferred/reference/rest/Shared.Types/LatLng) }, \"heading\": integer } ``` |\n\n| Fields ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `lat``Lng` | `object (`[LatLng](/maps/documentation/routes_preferred/reference/rest/Shared.Types/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 to use 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` travel modes. |"]]