可用的流量选项
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
请求路线时,您可以选择 Routes API 在计算路线时如何使用流量数据。流量模型是一种将历史路况信息和实时路况信息纳入路线生成过程的方式,可能会影响您获得的路线以及估算的行程时间。
以下是路线的流量选项:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-22。
[null,null,["最后更新时间 (UTC):2025-07-22。"],[[["\u003cp\u003eThe Routes API offers options to customize how traffic data is used for route calculation, impacting both route selection and estimated travel times.\u003c/p\u003e\n"],["\u003cp\u003eYou can choose to include or exclude traffic data, impacting the accuracy and speed of the results.\u003c/p\u003e\n"],["\u003cp\u003eTraffic-aware polylines provide detailed traffic conditions along the route but come with higher billing rates.\u003c/p\u003e\n"],["\u003cp\u003eDifferent traffic models can be selected to prioritize various factors like historical and live traffic conditions when estimating travel duration.\u003c/p\u003e\n"]]],["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"],null,["# Available traffic options\n\n**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq).\n\nWhen you request a route, you can choose how the Routes API uses traffic\ndata when calculating your route. A traffic model is a way to factor\nhistorical and live traffic conditions into your route generation, and can\naffect both which routes you get and how long the estimated travel time is.\n\nHere are the traffic options for a route:\n\n| Traffic Option | Description |\n|------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [Specify how and if to include traffic data](/maps/documentation/routes/config_trade_offs) | Include traffic data for more accurate results, or exclude it for a faster response. |\n| [Select whether polylines reflect traffic](/maps/documentation/routes/traffic_on_polylines#request_a_traffic-aware_polyline) | You can include information about the traffic conditions along the route in your returned polylines. This feature is billed at a higher rate. |\n| [Specify what traffic model to use](/maps/documentation/routes/traffic-model) | Specify which traffic model to use to prioritize different factors used in calculating duration in traffic. |"]]