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 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\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). |"]]