Skip to content

IsolineTrafficOptions

Source code in docs_src/capo_geo_routes/types/isoline_traffic_options.py
class IsolineTrafficOptions(TypedDict, closed=True):
    flow_event_threshold_override: (
        "capo_geo_routes.types.duration_seconds.DurationSeconds"
    )
    """<p>The duration in seconds that real-time congestion data is considered valid before reverting to historical traffic patterns. This helps balance between using current conditions and more predictable historical data when calculating travel times.</p> <p> <b>Unit</b>: <code>seconds</code> </p>"""
    usage: NotRequired["capo_geo_routes.types.traffic_usage.TrafficUsage"]
    """<p>Controls whether traffic data is used in calculations. <code>UseTrafficData</code> considers both real-time congestion and historical patterns, while <code>IgnoreTrafficData</code> calculates routes based solely on road types and speed limits. Using traffic data provides more accurate real-world estimates but may produce different results at different times of day.</p> <p>Default value: <code>UseTrafficData</code> </p>"""

flow_event_threshold_override instance-attribute

flow_event_threshold_override: DurationSeconds

The duration in seconds that real-time congestion data is considered valid before reverting to historical traffic patterns. This helps balance between using current conditions and more predictable historical data when calculating travel times.

Unit: seconds

usage instance-attribute

usage: NotRequired[TrafficUsage]

Controls whether traffic data is used in calculations. UseTrafficData considers both real-time congestion and historical patterns, while IgnoreTrafficData calculates routes based solely on road types and speed limits. Using traffic data provides more accurate real-world estimates but may produce different results at different times of day.

Default value: UseTrafficData