可用流量選項
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
要求路線時,您可以選擇 Routes API 在計算路線時使用交通資訊的方式。交通模型會將歷來和即時路況納入路線生成考量,並影響您取得的路線和預估交通時間。
路線的交通資訊選項如下:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-22 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]