TomTom Maps for JavaScript
    Preparing search index...

    Variable routeTypesConst

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

    Available route types, where each type specifies the type of optimization used when calculating routes:

    • fast: Route calculation is optimized by 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: Route calculation is optimized such that a good compromise between small travel time and short travel distance is achieved.
    • efficient: Route calculation is optimized such that a good compromise between small travel time and low fuel or energy consumption is achieved.
    • thrilling: Route calculation is optimized such that routes include interesting or challenging roads and use as few motorways as possible. There is a limit of 900km on routes planned with routeType=thrilling.