# 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:
  - bemap-model/bemap-roadFeature.js, line 48

### Members

#### (protected) AverageSpeed :Int

##### Type:

- Int

Source:
  - bemap-model/bemap-roadFeature.js, line 151

#### (protected) Bridge :Boolean

##### Type:

- Boolean

Source:
  - bemap-model/bemap-roadFeature.js, line 73

#### (protected) CarPool :Boolean

##### Type:

- Boolean

Source:
  - bemap-model/bemap-roadFeature.js, line 85

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

##### Type:

- Array.<bemap.CondMaxSpeed>

Source:
  - bemap-model/bemap-roadFeature.js, line 157

#### (protected) DirectionFlow :String

##### Type:

- String

Source:
  - bemap-model/bemap-roadFeature.js, line 55

#### (protected) DualCarriageway :Int

##### Type:

- Int

Source:
  - bemap-model/bemap-roadFeature.js, line 97

#### (protected) Length :Int

##### Type:

- Int

Source:
  - bemap-model/bemap-roadFeature.js, line 163

#### (protected) MainCategory :Boolean

##### Type:

- Boolean

Source:
  - bemap-model/bemap-roadFeature.js, line 91

#### (protected) MatchDir :String

##### Type:

- String

Source:
  - bemap-model/bemap-roadFeature.js, line 121

#### (protected) MaxSpeed :Int

##### Type:

- Int

Source:
  - bemap-model/bemap-roadFeature.js, line 145

#### (protected) MaxSpeedVerified :Boolean

##### Type:

- Boolean

Source:
  - bemap-model/bemap-roadFeature.js, line 79

#### (protected) NbLaneNeg :Int

##### Type:

- Int

Source:
  - bemap-model/bemap-roadFeature.js, line 133

#### (protected) NbLanePos :Int

##### Type:

- Int

Source:
  - bemap-model/bemap-roadFeature.js, line 127

#### (protected) NoThroughTr :Int

##### Type:

- Int

Source:
  - bemap-model/bemap-roadFeature.js, line 103

#### (protected) PedestrianInfrastructureType :String

##### Type:

- String

Source:
  - bemap-model/bemap-roadFeature.js, line 139

#### (protected) Tax :Int

##### Type:

- Int

Source:
  - bemap-model/bemap-roadFeature.js, line 115

#### (protected) Toll :Int

##### Type:

- Int

Source:
  - bemap-model/bemap-roadFeature.js, line 109

#### (protected) Tunnel :Boolean

##### Type:

- Boolean

Source:
  - bemap-model/bemap-roadFeature.js, line 67

#### (protected) Urban :Boolean

##### Type:

- Boolean

Source:
  - bemap-model/bemap-roadFeature.js, line 61

### Methods

#### getAverageSpeed()

Get the average speed in kph.

Source:
  - bemap-model/bemap-roadFeature.js, line 299

##### Returns:

#### getBridge() → {Boolean}

Get the flag that indicates if road is part of a bridge or not.

Source:
  - bemap-model/bemap-roadFeature.js, line 195

##### Returns:

Type
  Boolean

#### getCarPool() → {Boolean}

Get the flag that indicates if road is reserved to carpooling.

Source:
  - bemap-model/bemap-roadFeature.js, line 211

##### Returns:

Type
  Boolean

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

Get the conditional max speed.

Source:
  - bemap-model/bemap-roadFeature.js, line 307

##### Returns:

Type
  Array.<bemap.CondMaxSpeed>

#### getDirectionFlow() → {String}

Get the direction of traffic flow per transportation modes.

Source:
  - bemap-model/bemap-roadFeature.js, line 171

##### 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:
  - bemap-model/bemap-roadFeature.js, line 227

##### Returns:

Type
  Int

#### getLength() → {Int}

Get the length in meters.

Source:
  - bemap-model/bemap-roadFeature.js, line 315

##### Returns:

Type
  Int

#### getMainCategory() → {Boolean}

Get the flag that enables discrimination within road 's of a same FCC type.

Source:
  - bemap-model/bemap-roadFeature.js, line 219

##### Returns:

Type
  Boolean

#### getMatchDir() → {String}

Get the matching direction.

Source:
  - bemap-model/bemap-roadFeature.js, line 259

##### Returns:

Type
  String

#### getMaxSpeed() → {Int}

Get the speed limit in kph

Source:
  - bemap-model/bemap-roadFeature.js, line 291

##### Returns:

Type
  Int

#### getMaxSpeedVerified() → {Boolean}

Get max speed verified flag.

Source:
  - bemap-model/bemap-roadFeature.js, line 203

##### Returns:

Type
  Boolean

#### getNbLaneNeg() → {Int}

Get The number of lanes in negative direction.

Source:
  - bemap-model/bemap-roadFeature.js, line 275

##### Returns:

Type
  Int

#### getNbLanePos() → {Int}

Get The number of lanes in positive direction.

Source:
  - bemap-model/bemap-roadFeature.js, line 267

##### Returns:

Type
  Int

#### getNoThroughTr() → {Int}

Get

Source:
  - bemap-model/bemap-roadFeature.js, line 235

##### Returns:

Type
  Int

#### getPedestrianInfrastructureType() → {String}

Get the pedestrian infrastructure type

Source:
  - bemap-model/bemap-roadFeature.js, line 283

##### Returns:

Type
  String

#### getTax() → {Int}

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

Source:
  - bemap-model/bemap-roadFeature.js, line 251

##### Returns:

Type
  Int

#### getToll() → {Int}

Get toll information.

Source:
  - bemap-model/bemap-roadFeature.js, line 243

##### Returns:

Type
  Int

#### getTunnel() → {Boolean}

Get the flag that indicates if road is part of a tunnel or not.

Source:
  - bemap-model/bemap-roadFeature.js, line 187

##### Returns:

Type
  Boolean

#### getUrban() → {Boolean}

Get the urban / not urban flag.

Source:
  - bemap-model/bemap-roadFeature.js, line 179

##### Returns:

Type
  Boolean