Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
RouteModifiers
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"avoidTolls": boolean,
"avoidHighways": boolean,
"avoidFerries": boolean,
"avoidIndoor": boolean,
"vehicleInfo": {
object (VehicleInfo )
},
"tollPasses": [
enum (TollPass )
]
} |
字段 |
avoidTolls |
boolean
如果设置为 true,则会在合理的情况下避开收费道路,优先选择不含收费道路的路线。仅适用于 DRIVE 和 TWO_WHEELER 出行方式。
|
avoidHighways |
boolean
设置为 true 时,系统会在合理情况下避开高速公路,优先考虑不包含高速公路的路线。仅适用于 DRIVE 和 TWO_WHEELER 出行方式。
|
avoidFerries |
boolean
如果设置为 true,则会在合理的情况下避开轮渡,优先选择不含轮渡的路线。仅适用于 DRIVE 和 TWO_WHEELER 出行方式。
|
avoidIndoor |
boolean
设置为 true 时,在合理的范围内避免在室内导航,优先考虑不包含室内导航的路线。仅适用于WALK 出行方式。
|
vehicleInfo |
object (VehicleInfo )
指定车辆信息。
|
tollPasses[] |
enum (TollPass )
封装收费卡的相关信息。如果提供了通行卡,则 API 会尝试返回通行证价格。如果未提供通行卡,API 会将通行卡视为未知,并尝试返回现金价格。仅适用于 DRIVE 和 TWO_WHEELER 出行方式。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-10。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-11-10。"],[[["Route modifiers allow specifying optional conditions like avoiding tolls, highways, ferries, or indoor navigation."],["These modifiers primarily apply to `DRIVE`, `TWO_WHEELER`, and `WALK` travel modes."],["Vehicle information, including emission type, can be provided for route calculation."],["Toll pass details can be included to receive pass-specific pricing information."]]],["The content details optional route conditions, including avoiding tolls, highways, ferries, and indoor navigation. These avoidance options are set using boolean values. Vehicle information, such as `emissionType`, can also be specified. The user can provide information regarding toll passes. The API will try to return the pass price for routes if toll passes are provided, and cash prices if not. These options apply to different travel modes.\n"]]