可用的流量选项
请求路线时,您可以选择 Routes API 在计算路线时使用交通数据的方式。通过路况模型,您可以将历史路况和实时路况信息纳入路线生成的考量范围,这可能会影响您获得的路线和预计行程时间。
以下是路线的交通信息选项:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-06。
[null,null,["最后更新时间 (UTC):2025-02-06。"],[[["The Routes API offers options to customize how traffic data is used for route calculation, impacting both route selection and estimated travel times."],["You can choose to include or exclude traffic data, impacting the accuracy and speed of the results."],["Traffic-aware polylines provide detailed traffic conditions along the route but come with higher billing rates."],["Different traffic models can be selected to prioritize various factors like historical and live traffic conditions when estimating travel duration."]]],["The Routes API allows users to incorporate traffic data into route calculations. Users can choose to include or exclude traffic data for varying accuracy and response times. They can also opt for traffic-aware polylines, which provide traffic condition details along the route, though this incurs a higher cost. Furthermore, users can specify which traffic model to use, prioritizing factors in calculating travel duration based on traffic conditions.\n"]]