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" }