EMAPI.Router.RouteRepresentationItem

The class of characteristic point of route segment (entry in the report of the route).

Summary
EMAPI.Router.RouteRepresentationItemThe class of characteristic point of route segment (entry in the report of the route).
Properties
entryCost{Float} The current cost of the route start from the beginning up to this point.
entryDistance{Float} The distance along the route start from the beginning up to this point (in km).
entryPosition{EMAPI.LonLat} The coordinates of the characteristic point of the route.
entryTime{String} Journey time to the point from the beginning of the route.
entryDescription{String} A description of the characteristic point informs about the event in the course of the route.
entryType{String} The type of event at this point.
Functions
EMAPI.Router.RouteRepresentationItemThe constructor of a new instance of EMAPI.Router.RouteRepresentationItem class
destroyDestroys an object of EMAPI.Router.RouteRepresentationItem class.

Properties

entryCost

{Float} The current cost of the route start from the beginning up to this point.

entryDistance

{Float} The distance along the route start from the beginning up to this point (in km).

entryPosition

{EMAPI.LonLat} The coordinates of the characteristic point of the route.

entryTime

{String} Journey time to the point from the beginning of the route.

entryDescription

{String} A description of the characteristic point informs about the event in the course of the route.

entryType

{String} The type of event at this point.

  • depart (Departure from the starting point of the route)
  • apart (Getting to the end point of the route)
  • turnLeft (Turn left)
  • turnRight (Turn right)
  • bearLeft (Turn slightly to the left)
  • bearRight (Turn slightly to the right)
  • merge (Entry into the fast lane on the road)
  • continue (Continue the driving in the same direction)
  • turnBack (Turn back)
  • takeRoundabout (Enter roundabout)
  • nameChange (Change the name of the street / road number)
  • leftLeft (Turn left and then left again)
  • leftRight (Turn left and then right)
  • rightLeft (Turn right and then left)
  • rightRight (Turn right and then right again)
  • takeRamp (Exit from expressway)
  • takeRampLeft (Exit to the left of the expressway)
  • takeRampRight (Exit to the right of the expressway)
  • keepStraight (Keep straight ahead)
  • keepLeft (Keep the road on the left)
  • keepRight (Keep the road on the right)
  • borderCrossing (Border crossing)
  • beginningOfDay (Start another day of travel)
  • endOfDay (End of another day of travel)
  • tollGate (The toll gate)
  • beginningOfTollRoad (Beginning of toll road)
  • endOfTollRoad (End of toll road)
  • beginningOfRest (Beginning of driver’s rest)
  • endOfRest (End of driver’s rest)
  • beginningOfFerry (Beginning of the ferry)
  • endOfFerry (End of the ferry)
  • refuelNeeded (End of the fuel, necessary vehicle refueling)
  • beginningOfChargedRoad (Beginning of the road with vignette)
  • endOfChargedRoad (End of the road with vignette)
  • beginningOfViaTollRoad (Beginning of the viaTOLL road)
  • endOfViaTollRoad (End of the road with vignette)

Functions

EMAPI.Router.RouteRepresentationItem

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

Parameters

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

destroy

destroy: function()

Destroys an object of EMAPI.Router.RouteRepresentationItem class.

A class representing the geographic coordinates in the form of latitude and longitude.
destroy: function()
Destroys an object of EMAPI.Router.RouteRepresentationItem class.
Close