EMAPI.Router.RoadParams

Class of suitable parameters type of roads taken into account during the routes calculating

Summary
EMAPI.Router.RoadParamsClass of suitable parameters type of roads taken into account during the routes calculating
Properties
roadType{String} Type of road.
use{Boolean} Information about using the type of road in the route calculating (default is true).
speed{Float} The average speed in km/h passing the type of the road (default 0).
combustion{Float} The average fuel consumption in l/100km while travelling routes of a given type (default 0).
toll{Float} Cost of viaTOLL per km.
Functions
EMAPI.Router.RoadParamsThe constructor of a new instance of EMAPI.Router.RoadParams class.
destroyDestroys an object of EMAPI.Router.RoadParams class.

Properties

roadType

{String} Type of road.

  • Highway
  • Speedway
  • NationalRoad
  • RegionalRoad
  • LocalRoad
  • OtherRoad
  • UnpavedRoad
  • VehicularStreet
  • MainStreet
  • OtherStreet
  • Ferry
  • HighwayInBUA
  • SpeedwayInBUA
  • NationalRoadInBUA
  • RegionalRoadInBUA

use

{Boolean} Information about using the type of road in the route calculating (default is true).

speed

{Float} The average speed in km/h passing the type of the road (default 0).

combustion

{Float} The average fuel consumption in l/100km while travelling routes of a given type (default 0).

toll

{Float} Cost of viaTOLL per km.

Functions

EMAPI.Router.RoadParams

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

Parameters

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

destroy

destroy: function()

Destroys an object of EMAPI.Router.RoadParams class.

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