Click or drag to resize

VehicleSpec Structure

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Used to describe a vehicle's specifications.

Namespace:  Telogis.GeoBase.Routing
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public struct VehicleSpec

The VehicleSpec type exposes the following members.

Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodStatic memberFromXml
Used to deserialize a VehicleSpec object from XML.
Public methodGetHashCode
Returns a unique integer for this object.
(Overrides ValueTypeGetHashCode.)
Public methodGetLoadInfo
Returns the type and weight (measured in kilograms) for one of the loads that the vehicle (represented by this VehicleSpec) object is carrying.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetLoadInfo
Sets the type and weight (measured in kilograms) of one of the loads that the vehicle (represented by this VehicleSpec) object is carrying.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Public methodToXml
Used to serialize a VehicleSpec object to XML.
Top
Fields
  NameDescription
Public fieldGrossWeight_kg
Total weight of the vehicle (including fuel, cargo and passengers), measured in kilograms.
Public fieldHeight_cm
Maximum height of the vehicle, measured in centimeters.
Public fieldKingpinToEnd_cm
Distance from the kingpin to the end of the trailer, measured in centimeters.
Public fieldKingpinToLastAxle_cm
Distance from the kingpin to the last trailer axle, measured in centimeters.
Public fieldKingpinToMiddleOfLastTandem_cm
Distance from the kingpin to the center of the last tandem axle, measured in centimeters.
Public fieldLength_cm
Maximum length of the vehicle, measured in centimeters.
Public fieldStatic memberLoadLength
Maximum number of allowed loads.
Public fieldMaxAxleWeight_kg
Maximum (distributed) weight supported by an axle, measured in kilograms.
Public fieldMaxTandemAxleWeight_kg
Maximum (distributed) weight supported by a tandem axle, measured in kilograms.
Public fieldMaxTrailerLength_cm
Maximum length of the trailer, measured in centimeters.
Public fieldMaxTridemAxleWeight_kg
Maximum (distributed) weight supported by a tridem axle, measured in kilograms.
Public fieldNumberOfAxles
Total number of axles on this vehicle (including trailers).
Public fieldNumberOfAxlesOnTrailers
Sum total of the number of axles on each trailer.
Public fieldNumberOfTrailers
Total number of trailers pulled by this vehicle.
Public fieldNumberOfWheels
Total number of wheels on this vehicle.
Public fieldTractorLength_cm
Maximum length of the tractor, measured in centimeters.
Public fieldUnladenWeight_kg
Unladen (without cargo) weight of the vehicle, measured in kilograms.
Public fieldVehicleType
Classification of this vehicle, as a VehicleType.
Public fieldWeightPerInchWidthOfTire_kg
Maximum weight per inch of width of tire. This is a measure of the maximum pressure exterted by this vehicle onto the road surface.
Public fieldWidth_cm
Maximum width of the vehicle, measured in centimeters.
Top
Remarks

Each Route, Navigator and NavigationManager has a VehicleSpec. 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.

Use the SetLoadInfo(Int32, LoadType, UInt32) method to configure the load that the vehicle is carrying. This load may include HAZMAT designations. See LoadType for possible designations.

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.

Examples
C#
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...
See Also