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

    Type Alias TravelMode

    TravelMode: "car"

    The primary mode of transportation for route calculation.

    It determines the road type preferences, speed calculations and routing rules of the calculated route. Currently, only 'car' is supported.

    Future versions may support additional modes such as truck, taxi, bus, bicycle and pedestrian.

    const travelMode: TravelMode = 'car';