Thetype exposes the following members.
Indicates whether this instance and a specified object are equal.(Inherited from .)
Used to deserialize aobject from XML.
Returns a unique integer for this object.(Overrides .)
Returns the type and weight (measured in kilograms) for one of the loads that the vehicle (represented by this ) object is carrying.
Gets the(Inherited from of the current instance. .)
Sets the type and weight (measured in kilograms) of one of the loads that the vehicle (represented by this ) object is carrying.
Returns the fully qualified type name of this instance.(Inherited from .)
Used to serialize aobject to XML.
Total weight of the vehicle (including fuel, cargo and passengers), measured in kilograms.
Maximum height of the vehicle, measured in centimeters.
Distance from the kingpin to the end of the trailer, measured in centimeters.
Distance from the kingpin to the last trailer axle, measured in centimeters.
Distance from the kingpin to the center of the last tandem axle, measured in centimeters.
Maximum length of the vehicle, measured in centimeters.
Maximum number of allowed loads.
Maximum (distributed) weight supported by an axle, measured in kilograms.
Maximum (distributed) weight supported by a tandem axle, measured in kilograms.
Maximum length of the trailer, measured in centimeters.
Maximum (distributed) weight supported by a tridem axle, measured in kilograms.
Total number of axles on this vehicle (including trailers).
Sum total of the number of axles on each trailer.
Total number of trailers pulled by this vehicle.
Total number of wheels on this vehicle.
Maximum length of the tractor, measured in centimeters.
Unladen (without cargo) weight of the vehicle, measured in kilograms.
Classification of this vehicle, as a VehicleType.
Maximum weight per inch of width of tire. This is a measure of the maximum pressure exterted by this vehicle onto the road surface.
Maximum width of the vehicle, measured in centimeters.
Each Route, Navigator and NavigationManager has a. When optimizing a route, or obtaining driving directions the Route, Navigator or NavigationManager will consider the attributes specified in its VehicleSpec property to ensure that the route is safe.
You may use the ConvertUnits(Double, DistanceUnit, DistanceUnit) to convert between distance units.Note that it may be necessary to call ForceRecalculate if a vehicle's specifications are changed after a route has been calculated.
Related articles: Using Truck Attributes.
VehicleSpec vs = new VehicleSpec(); vs.VehicleType = VehicleType.StraightTruck; // straight flat-bed truck vs.Height_cm = 467; // about 15 feet vs.SetLoadInfo(0, LoadType.Forestry, 2000); // 2 tonnes of timber vs.SetLoadInfo(1, LoadType.Hazmat_3, 80); // 80 kg of paint myRoute.VehicleSpec = vs; // now, when we call myRoute.GetDirections() the route will be calculated // for a 15'-high truck carrying 2 tonnes of timber and 80 kg of paint...