TomTom Maps for JavaScript
    Preparing search index...

    Type Alias InputSectionTypes

    InputSectionTypes: InputSectionType[]

    Array of section types to include in the route response.

    Sections divide the route into portions with specific characteristics, helping you display additional context like toll roads, ferry crossings, or traffic incidents.

    Available section types:

    • carTrain: Sections requiring car train transport
    • ferry: Water crossings requiring ferry
    • tunnel: Underground tunnel sections
    • motorway: Highway/freeway sections
    • pedestrian: Pedestrian-only sections
    • toll: Sections requiring toll payment
    • tollVignette: Sections requiring toll vignette
    • country: Different countries traversed
    • traffic: Sections with traffic incidents
    • vehicleRestricted: Sections with vehicle restrictions
    • carpool: HOV/carpool lane sections
    • urban: Urban area sections
    • unpaved: Unpaved road sections
    • lowEmissionZone: Low emission zones
    • speedLimit: Speed limit changes
    • roadShields: Road shield information
    // Request toll, ferry, and traffic sections
    const sectionTypes: InputSectionTypes = ['toll', 'ferry', 'traffic'];

    // Request all available sections
    const sectionTypes: InputSectionTypes = inputSectionTypes;

    // Request no optional sections (leg sections still included)
    const sectionTypes: InputSectionTypes = [];
    All available section types