Class: RoadFeature

(abstract) bemap.RoadFeature(options)

Base class for road features.

Constructor

(abstract) new RoadFeature(options)

Parameters:
Name Type Description
options object see below the available values.
Properties
Name Type Description
DirectionFlaw String The direction of traffic flow per transportation modes. For each mode, possible values are: - CLOSE: closed in both directions. - OPEN_POS: open in positive direction. - OPEN_NEG: open in negative direction. - OPEN: open in both directions.
Urban Boolean Urban / not urban flag.
Tunnel Boolean A flag that indicates if road is part of a tunnel or not.
Bridge Boolean A flag that indicates if road is part of a bridge or not.
MaxSpeedVerified Boolean Max speed verified flag(true: verified, false: calculated).
CarPool Boolean : A flag that indicates if road is reserved to carpooling.
MainCategory Boolean A flag that enables discrimination within road 's of a same FCC type (depends of map provider).
DualCarriageway Int A flag that indicates if road is part of a dual carriageway(e.g.with physical separation between opposite traffic sides) .0: no or unknown, 1: yes.
NoThroughTr Int No through traffic restriction(0: no restriction, 1: restriction, 2: restriction for trucks only).
Toll Int Toll information: 0 no toll, 1 toll in positive direction, 2 toll in negative direction, 3 toll in both directions.
Tax Int This fields indicates if road is submitted to a government tax(like German MAUT, etc) .0 means no tax, 1 - 3 defines the tax category(country dependent).
MatchDir String The matching direction: - CLOSE: Undefined matched direction and closed in both directions. - OPEN_POS: Matched in positive direction. - OPEN_NEG: Matched in negative direction. - OPEN: Undefined matched direction and open in both directions.
NbLanePos Int The number of lanes in positive direction(0 if traffic closed in positive direction or if lane information is not available).
NbLaneNeg Int The number of lanes in negative direction(0 if traffic closed in negative direction or if lane information is not available).
PedestrianInfrastructureType String The pedestrian infrastructure type: -UNDEFINED = 0 Undefined. - ZONE = 1: Pedestrian Zone. - HIKING = 2 - Hiking. - UNPAVED_ROAD = 3 - Unpaved Road. - ROUGH_ROAD = 4 - Rough Road. - POOR_CONDITION_ROAD = 5 - Poor Condition Road. - STAIRS = 6 - Stairs. - TUNNEL = 7 - Tunnel. - ELEVATOR = 8 - Elevator. - ESCALATOR = 9 - Escalator. - FOOTBRIDGE = 10 - Footbridge.
MaxSpeed Int The speed limit in kph(0 if not available).
CondMaxSpeed Array.<bemap.CondMaxSpeed> A conditional speed limit.
AverageSpeed Int The average speed in kph.
Lenght Int The length in meters.
Source:

Members

(protected) AverageSpeed :Int

Type:
  • Int
Source:

(protected) Bridge :Boolean

Type:
  • Boolean
Source:

(protected) CarPool :Boolean

Type:
  • Boolean
Source:

(protected) CondMaxSpeed :Array.<bemap.CondMaxSpeed>

Type:
Source:

(protected) DirectionFlow :String

Type:
  • String
Source:

(protected) DualCarriageway :Int

Type:
  • Int
Source:

(protected) Length :Int

Type:
  • Int
Source:

(protected) MainCategory :Boolean

Type:
  • Boolean
Source:

(protected) MatchDir :String

Type:
  • String
Source:

(protected) MaxSpeed :Int

Type:
  • Int
Source:

(protected) MaxSpeedVerified :Boolean

Type:
  • Boolean
Source:

(protected) NbLaneNeg :Int

Type:
  • Int
Source:

(protected) NbLanePos :Int

Type:
  • Int
Source:

(protected) NoThroughTr :Int

Type:
  • Int
Source:

(protected) PedestrianInfrastructureType :String

Type:
  • String
Source:

(protected) Tax :Int

Type:
  • Int
Source:

(protected) Toll :Int

Type:
  • Int
Source:

(protected) Tunnel :Boolean

Type:
  • Boolean
Source:

(protected) Urban :Boolean

Type:
  • Boolean
Source:

Methods

getAverageSpeed()

Get the average speed in kph.
Source:
Returns:

getBridge() → {Boolean}

Get the flag that indicates if road is part of a bridge or not.
Source:
Returns:
Type
Boolean

getCarPool() → {Boolean}

Get the flag that indicates if road is reserved to carpooling.
Source:
Returns:
Type
Boolean

getCondMaxSpeed() → {Array.<bemap.CondMaxSpeed>}

Get the conditional max speed.
Source:
Returns:
Type
Array.<bemap.CondMaxSpeed>

getDirectionFlow() → {String}

Get the direction of traffic flow per transportation modes.
Source:
Returns:
Type
String

getDualCarriageway() → {Int}

Get the flag that indicates if road is part of a dual carriageway(e.g.with physical separation between opposite traffic sides).
Source:
Returns:
Type
Int

getLength() → {Int}

Get the length in meters.
Source:
Returns:
Type
Int

getMainCategory() → {Boolean}

Get the flag that enables discrimination within road 's of a same FCC type.
Source:
Returns:
Type
Boolean

getMatchDir() → {String}

Get the matching direction.
Source:
Returns:
Type
String

getMaxSpeed() → {Int}

Get the speed limit in kph
Source:
Returns:
Type
Int

getMaxSpeedVerified() → {Boolean}

Get max speed verified flag.
Source:
Returns:
Type
Boolean

getNbLaneNeg() → {Int}

Get The number of lanes in negative direction.
Source:
Returns:
Type
Int

getNbLanePos() → {Int}

Get The number of lanes in positive direction.
Source:
Returns:
Type
Int

getNoThroughTr() → {Int}

Get
Source:
Returns:
Type
Int

getPedestrianInfrastructureType() → {String}

Get the pedestrian infrastructure type
Source:
Returns:
Type
String

getTax() → {Int}

Get the fields that indicates if road is submitted to a government tax(like German MAUT, etc).
Source:
Returns:
Type
Int

getToll() → {Int}

Get toll information.
Source:
Returns:
Type
Int

getTunnel() → {Boolean}

Get the flag that indicates if road is part of a tunnel or not.
Source:
Returns:
Type
Boolean

getUrban() → {Boolean}

Get the urban / not urban flag.
Source:
Returns:
Type
Boolean