This is the documentation of version 1.0.0-rc.6. Go to the latest version, 1.0.0.
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, as RouteType describes.