Class vehicle parameters taken into account during routes calculating.
EMAPI. | Class vehicle parameters taken into account during routes calculating. |
Properties | |
name | {String} Vehicle name |
vehicleType | {Integer} The type of vehicle (default 0). |
ignoreFuel | {Boolean} Information about ignoring the cost of fuel during the routing (default true). |
fixedCost | {Float} Fixed cost of a single vehicle trip (default 0.00). |
costPerKilometer | {Float} The cost of 1 km of the route travelled by the vehicle (default 0.00). |
costPerHour | {Float} The cost of one hour of vehicle travel (default 0.00). |
tollRoadPerKilometer | {Float} The cost of 1 km toll road travelled by the vehicle (default 0.00). |
tankCapacity | {Float} The capacity of vehicle’s fuel tank (default 0). |
fuelCost | {Float} The cost of 1 litre of fuel used by the vehicle (default 0.00). |
refuelTime | {Float} Refuelling time being a fractional part of the day, e.g. |
vehicleWeight | {Float} Vehicle weight in tonnes (default 0). |
vehicleLength | {Float} Vehicle length in meters (default 0). |
vehicleHeight | {Float} Vehicle height in meters (default 0). |
vehicleWidth | {Float} Vehicle width in meters (default 0). |
vehicleCapacity | {Float} Vehicle cargo capacity in cubic meters (default 0). |
vehicleLoadCapacity | {Float} The maximum weight of the load of the vehicle in tonnes (default 0). |
shippingTime | {Float} Time boarding of the ferry which is a fractional part of the day, e.g. |
borderPassTime | {Float} The waiting time at the border crossing which is a fractional part of the day e.g. |
routeOptions | {EMAPI.ArrayObjects} The parameters of a moving vehicle on the different types. |
vehicleWeightPerAxle | {Float} Pressure per axle in tones (default 0) |
Functions | |
EMAPI. | Constructor of new instance EMAPI.Router.VehicleParams class. |
destroy | Destroys object of EMAPI.Router.VehicleParams class. |
{Integer} The type of vehicle (default 0).
{EMAPI.ArrayObjects} The parameters of a moving vehicle on the different types. It’s an array of 15 objects EMAPI.Router.RoadParams class managed by an object of EMAPI.ArrayObjects class.
Destroys object of EMAPI.Router.VehicleParams class.
destroy: function()