TomTom Maps for JavaScript
    Preparing search index...

    Type Alias VehicleRestrictions

    Parameters for a vehicle which are related to restrictions applied during route planning.

    type VehicleRestrictions = {
        restrictions?: {
            maxSpeedKMH?: number;
            tollTransponder?: TollTransponder;
        };
    }
    Index
    restrictions?: { maxSpeedKMH?: number; tollTransponder?: TollTransponder }

    Vehicle restrictions applied during route planning.

    Type Declaration

    • OptionalmaxSpeedKMH?: number

      Maximum speed of the vehicle in kilometers/hour.

      • Must have a value in the range [0, 250].
      • A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
      0
      
    • OptionaltollTransponder?: TollTransponder

      Whether the vehicle carries an electronic toll collection transponder.

      Affects which toll roads are considered usable: a toll that can only be paid by transponder is avoided when this is none, and a toll that cannot be paid by transponder is avoided when this is all.

      'unknown'
      
      restrictions: {
      tollTransponder: 'all'
      }