TripWaypoint
JSON 表示法 |
{
"location": {
object (TerminalLocation )
},
"tripId": string,
"waypointType": enum (WaypointType ),
"pathToWaypoint": [
{
object (LatLng )
}
],
"encodedPathToWaypoint": string,
"trafficToWaypoint": {
object (ConsumableTrafficPolyline )
},
"distanceMeters": integer,
"eta": string,
"duration": string
} |
欄位 |
location |
object (TerminalLocation )
此航點的位置。
|
tripId |
string
與此路標相關聯的行程。
|
waypointType |
enum (WaypointType )
這個路線點在行程中扮演的角色,例如上車或下車地點。
|
pathToWaypoint[] |
object (LatLng )
從上一個路標到目前路標的路徑。清單中的第一個路線點為未定義。只有在使用者提出要求時,系統才會填入這個欄位。
|
encodedPathToWaypoint |
string
從上一個路標到目前路標的經過編碼的路徑。 注意:此欄位僅供 Driver SDK 和 Consumer SDK 使用。尚未支援解碼。
|
trafficToWaypoint |
object (ConsumableTrafficPolyline )
前往此路線的路況。請注意,只有 Google 地圖平台的叫車和外送解決方案客戶才能使用交通資訊。
|
distanceMeters |
integer
從上一個路標到目前路標的路徑距離。清單中的第一個路線點為未定義。
|
eta |
string (Timestamp format)
預估抵達這個路標的時間。清單中的第一個路線點為未定義。 使用 RFC 3339,產生的輸出內容一律會經過 Z 規格化,並使用 0、3、6 或 9 小數位數。系統也接受「Z」以外的偏移值。例如:"2014-10-02T15:01:23Z" 、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30" 。
|
duration |
string (Duration format)
從上一個路標到這個點的車程時間。清單中的第一個路線點為未定義。 時間長度以秒為單位,最多可有 9 個小數位數,並應以「s 」結尾,例如:"3.5s" 。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-22 (世界標準時間)。
[null,null,["上次更新時間:2025-01-22 (世界標準時間)。"],[[["Waypoints represent stopping points or ending points on a vehicle's route or trip."],["Each waypoint includes information like location, trip ID, type (pickup, dropoff), path, and estimated arrival time."],["Waypoints can optionally include details about the path to the waypoint, traffic conditions, and distance."],["The ETA and duration fields provide estimates for arrival time and travel time to the waypoint."]]],["This data represents a waypoint, a stopping or ending point in a vehicle's trip. Key information includes the `location`, the associated `tripId`, and the `waypointType` (e.g., pickup, dropoff). It also provides path details like `pathToWaypoint`, `encodedPathToWaypoint`, and `trafficToWaypoint`, alongside metrics such as `distanceMeters`, `eta` (estimated time of arrival), and `duration` (travel time). Some data, like path details and time-related metrics, are undefined for the initial waypoint.\n"]]