RouteTravelAdvisory
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
提供使用者應瞭解的其他資訊,例如可能的流量區限制。
JSON 表示法 |
{
"tollInfo": {
object (TollInfo )
},
"speedReadingIntervals": [
{
object (SpeedReadingInterval )
}
],
"fuelConsumptionMicroliters": string,
"routeRestrictionsPartiallyIgnored": boolean,
"transitFare": {
object (Money )
}
} |
欄位 |
tollInfo |
object (TollInfo )
包含路線上的收費路段資訊。只有在路線上有收費路段時,才會填入這個欄位。如果設定了這個欄位,但系統未填寫估計價格子欄位,那麼路線就會包含收費路段,但預估價格不明。如果不設定這個欄位,路線上就不會出現收費路段。
|
speedReadingIntervals[] |
object (SpeedReadingInterval )
用於讀取流量密度的讀取速度間隔。適用於 TRAFFIC_AWARE 和 TRAFFIC_AWARE_OPTIMAL 轉送偏好設定。該間隔會涵蓋路線的整個折線,而且不會重疊。指定時間間隔的起始點與前一個間隔的端點相同。 例子:
polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speedReadingIntervals: [A,C), [C,D), [D,G).
|
fuelConsumptionMicroliters |
string (int64 format)
預測的燃料消耗量 (以百萬分之一為單位)。
|
routeRestrictionsPartiallyIgnored |
boolean
傳回的路線可能因為要求的交通方式或路線修飾符而不適用。
|
transitFare |
object (Money )
如果有的話,包含這條路線的總車資或車票費。系統只會針對 TRANSIT 要求傳回這個屬性,且僅適用於所有大眾運輸步驟皆有車資資訊的路線。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-06-29 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]