package tmc
Type Members
-
case class
PreciseTMCInformation(distanceAccuracy: Option[Short], hazardDistance1: Option[Short], hazardDistance2: Option[Int], problemLength1: Option[Short], problemLength2: Option[Int]) extends Product with Serializable
Precise TMC-Information as defined in ISO 17572-2.
Precise TMC-Information as defined in ISO 17572-2. Adds offsets to TMC locations.
- distanceAccuracy
The accuracy of the underlying information, with the following encoding: 0 = 100m (default value), 1 = 500m, 2 = 1km, 3 = more than 1km.
- hazardDistance1
The distance from the primary location to the start of the referenced location, also known as D1. The unit is 100m, i.e. the range is up to 25km.
- hazardDistance2
The same as
hazardDistance1
but the range is up to 6553km.- problemLength1
Distance from the start of the problem to the end of the problem. The unit is 100m, i.e. the is up to 25km.
- problemLength2
The same as
problemLength1
but the range is up to 6553km.
-
case class
TMCLocationReference(locationID: Int, countryCode: Short, locationTableNumber: Short, direction: Boolean, bothDirections: Boolean, extent: Option[Short], extendedCountryCode: Option[Short], locationTableVersion: Option[Long], preciseTMCInfo: Option[PreciseTMCInformation]) extends Method with Product with Serializable
A TMC location reference as specified in ISO 17572.
A TMC location reference as specified in ISO 17572. Additionally, it supports flags to indicate whether the internal location parts of the primary and the secondary location are also included.
- locationID
The number of the of the primary location in the location table. It is an unsigned 16-bit integer, that is a number between 1 and 65535. It is customarily represented as a decimal number.
- countryCode
The country code is used to identify the correct location table. This is a number between 1 and 15. It is customarily represented as a single hexadecimal digit.
- locationTableNumber
The number of the location table. This is a number between 1-63. It is customarily represented as a two digit decimal number.
- direction
Indicates whether to follow the positive direction (
true
) to go from primary to secondary or whether to follow the negative direction (false
).- bothDirections
Indicates whether both directions are considered part of the referenced location.
- extent
Number of locations along the linear to get from the primary location to the secondary location following the direction given in
direction
. A value of None is equivalent to Some(0) and means that only the internal of the primary location is part of the referenced location.- extendedCountryCode
The extended country code is used to identify the table. It is an unsigned 8-bit integer. It is customarily represented as a two digit hexadecimal number.
- locationTableVersion
A variable length representation of the table version. If one byte is used then there are 4 bits for the major version and 3 bits for the minor version. If two bytes are used the there are 7 bits for the minor and 7 bits for the major version.
- preciseTMCInfo
Offsets to give a more precise location.