EMAPI.Router.DriverParams

Class driver parameters taken into account during routes calculating.

All cost which was set in a driver parameters should be provided in currency which was specified while prescribing an itinerary (by default in PLN)

Summary
EMAPI.Router.DriverParamsClass driver parameters taken into account during routes calculating.
Properties
name{String} Name or surname of the driver.
journeyStartTime{Float} Time starting a route which is a fractional part of the day, e.g.
dayWorkTime{Float} The driver’s daily working time which is a fractional part of the day, e.g.
continuousWorkTime{Float} The maximum continuous driver’s driving time being a fractional part of the day, e.g.
breakTime{Float} Break time after continuous driving time which is fractional part of the day, e.g.
costPerKilometer{Float} The cost of 1 km of the route made by the driver (default 0.00).
costPerHour{Float}The cost of one hour for the driver (default 0.00).
Functions
EMAPI.Router.DriverParamsThe constructor of a new instance of EMAPI.Router.DriverParams class
destroyDestroys an object of EMAPI.Router.DriverParams class.

Properties

name

{String} Name or surname of the driver.

journeyStartTime

{Float} Time starting a route which is a fractional part of the day, e.g.  1/24 means the time 01:00:00 (default 0).

dayWorkTime

{Float} The driver’s daily working time which is a fractional part of the day, e.g.  1/24 means the time 01:00:00 (default 0).

continuousWorkTime

{Float} The maximum continuous driver’s driving time being a fractional part of the day, e.g.  1/24 means time 01:00:00 (default 0).

breakTime

{Float} Break time after continuous driving time which is fractional part of the day, e.g.  1/24 means time 01:00:00 (default 0).

costPerKilometer

{Float} The cost of 1 km of the route made by the driver (default 0.00).

costPerHour

{Float}The cost of one hour for the driver (default 0.00).

Functions

EMAPI.Router.DriverParams

The constructor of a new instance of EMAPI.Router.DriverParams class

Parameters

options{Object} An object with additional parameters of class instance.

destroy

destroy: function()

Destroys an object of EMAPI.Router.DriverParams class.

destroy: function()
Destroys an object of EMAPI.Router.DriverParams class.
Close