TomTom Maps for JavaScript
    Preparing search index...

    Variable routeTypesConst

    routeTypes: readonly ["fast", "short", "efficient", "thrilling"] = ...

    The available route types, each naming the optimisation that route calculation uses:

    • fast optimises for travel time, while keeping the routes sensible. For example, the calculation may avoid shortcuts along inconvenient side roads or long detours that only save very little time.
    • short finds a good compromise between small travel time and short travel distance.
    • efficient finds a good compromise between small travel time and low fuel or energy consumption.
    • thrilling includes interesting or challenging roads and uses as few motorways as possible. Routes planned with routeType=thrilling are limited to 900km.