This is the documentation of version 0.47.8. Go to the latest version, 1.0.0.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias RouteParams

    Route planning parameters stored in routing state. Consumed by setRoute, addWaypointsToRoute, removeWaypointsFromRoute, and replaceWaypointInRoute.

    type RouteParams = {
        costModel?: {
            avoid?: string[];
            avoidAreas?: number[][];
            routeType?: string;
            traffic?: "live" | "historical";
        };
        maxAlternatives?: number;
        when?: { date: string; option: "departAt"
        | "arriveBy" };
    }
    Index

    Properties

    costModel?: {
        avoid?: string[];
        avoidAreas?: number[][];
        routeType?: string;
        traffic?: "live" | "historical";
    }
    maxAlternatives?: number
    when?: { date: string; option: "departAt" | "arriveBy" }