This is the documentation of version 0.57.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>;
        preferences?: VehiclePreferences;
        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.

    preferences?: VehiclePreferences

    Generic vehicle preferences for unspecified engine type.

    Currently no generic preferences exist; this is for future extensibility.

    state?: VehicleState

    State of the vehicle with generic/unspecified engine type.

    Includes current heading and other properties that vary during travel.