This is the documentation of version 1.0.0-rc.3. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ComputeTravelTimeFor

    ComputeTravelTimeFor: "none" | "all"

    Traffic computation mode for alternative travel time estimates.

    It controls whether to calculate additional travel times for different traffic scenarios.

    • none: Only return default best-estimate travel time
    • all: Return travel times for multiple traffic scenarios:
      • No traffic (free flow)
      • Historic traffic patterns
      • Live traffic incidents
    // Get all traffic-based time estimates
    const computeTravelTimeFor: ComputeTravelTimeFor = 'all';
    'none'