This is the documentation of version 0.60.0. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias GenericVehicleParams

    Generic vehicle parameters without specific engine type.

    Use for vehicles where engine type doesn't matter for routing, or when you want to specify only basic restrictions.

    const params: GenericVehicleParams = {
    model: {
    dimensions: {
    weightKG: 3500
    }
    }
    };
    type GenericVehicleParams = {
        model?: ExplicitVehicleModel<undefined>;
        state?: VehicleState;
    }
    Index
    model?: ExplicitVehicleModel<undefined>

    Model (static properties) of the vehicle with generic/unspecified engine type.

    Includes dimensions and other characteristics that don't change during travel. A predefined variantId is not accepted here — only the charging-stops endpoint understands one, and that endpoint is reached with an electric vehicle carrying charging preferences.

    state?: VehicleState

    State of the vehicle with generic/unspecified engine type.

    Includes current heading and other properties that vary during travel.