TomTom Maps for JavaScript
    Preparing search index...

    Type Alias VehicleDimensions

    Physical properties of the vehicle.

    Weight is the only dimension routing takes. There are no height, width, length or axle-weight restrictions. TravelMode lists the modes routing offers.

    The vehicle weight is used to:

    • Check road weight restrictions
    • Calculate toll costs (weight-based pricing)
    // Standard delivery van
    const vanDimensions: VehicleDimensions = {
    weightKG: 3500
    };

    // Large truck
    const truckDimensions: VehicleDimensions = {
    weightKG: 40000
    };
    type VehicleDimensions = {
        weightKG?: number;
    }
    Index
    weightKG?: number

    Weight of the vehicle in kilograms.

    A non-zero weight makes routing consider weight restrictions.

    Typical values are:

    • Small car: 1,000-1,500 kg
    • SUV: 1,800-2,500 kg
    • Van: 2,000-3,500 kg
    • Truck (empty): 7,500-12,000 kg
    • Truck (loaded): 20,000-40,000 kg
    0
    
    weightKG: 1500   // Compact car
    weightKG: 3500 // Loaded van
    weightKG: 40000 // Fully loaded truck