10.4 Road type

The road type defines the main purpose of a road and the associated traffic rules. Example road types are motorways and rural roads. The road type is valid for the entire road cross section.

The road type may be changed as often as needed within a <road> element. This may be done by defining different road types at given points along the road reference line. One road type remains valid until another road type is defined.

Elements in UML model

<type> element

In ASAM OpenDRIVE, the road type is represented by the <type> element within the <road> element.

UML class: t_road_type
XML tag:   <type> (Multiplicity: 0..*)

A road type element is valid for the entire cross section of a road. It is valid until a new road type element is provided or until the road ends.

Table 25. Attributes of the <type> element
Name Type Use Unit Description

country

e_countryCode

optional

Country code of the road, see ISO 3166-1, alpha-2 codes.

s

t_grEqZero

required

m

s-coordinate of start position

type

e_roadType

required

Type of the road defined as enumeration

Rules

The following rules apply to road types:

  • When the type of road changes, a new <type> element shall be created within the parent <road> element.

  • Country code and state identifier may be added to the <type> element to specify which national traffic rules apply to this road type. The according data is stored in the application and not in ASAM OpenDRIVE.

  • There shall only be ALPHA-2 country codes in use, no ALPHA-3 country codes, because only ALPHA-2 country codes support state identifiers.

  • Single lanes may have another type than the road they belong to. Road type and lane type represent different properties and are both valid if specified.

  • <type> elements shall be defined in ascending order according to the s-coordinate.

Related topics

10.4.1 Speed limits for road types

A speed limit may be defined for a road type. When the road type changes and a speed limit exists on that road section, a new <speed> element is required, because road types have no global valid speed limits unless provided by <defaultRegulations>. The speed limit shall be defined for each <type> element of a road separately.

Elements in UML model

<speed> element

In ASAM OpenDRIVE, the speed limit is represented by the <speed> element within the <type> element.

UML class: t_road_type_speed
XML tag:   <speed> (Multiplicity: 0..1)

Defines the default maximum speed allowed in conjunction with the specified road type.

Table 26. Attributes of the <speed> element
Name Type Use Description

max

t_maxSpeed

required

Maximum allowed speed. Given as string (only "no limit" / "undefined") or numerical value in the respective unit (see attribute unit). If the attribute unit is not specified, m/s is used as default.

unit

e_unitSpeed

required

Unit of the attribute max. For values, see chapter “units”.

Rules

The following rules apply to speed limits:

  • A maximum speed may be defined as default value per <type> element of a road.

  • Single lanes may have different speed limits than the road they belong to. They are defined as a lane <speed> element.

  • Speed limits derived from signals shall always have preference.

Related topics