Class TMCLocationReference

java.lang.Object
com.here.platform.location.tpeg2.tmc.TMCLocationReference
All Implemented Interfaces:
Method, Serializable, scala.Equals, scala.Product, scala.Serializable

public class TMCLocationReference extends Object implements Method, scala.Product, scala.Serializable
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.

param: 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. param: 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. param: locationTableNumber The number of the location table. This is a number between 1-63. It is customarily represented as a two digit decimal number. param: direction Indicates whether to follow the positive direction (true) to go from primary to secondary or whether to follow the negative direction (false). param: bothDirections Indicates whether both directions are considered part of the referenced location. param: 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. param: 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. param: 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. param: preciseTMCInfo Offsets to give a more precise location.

See Also:
  • Constructor Details

    • TMCLocationReference

      public TMCLocationReference(int locationID, short countryCode, short locationTableNumber, boolean direction, boolean bothDirections, scala.Option<Object> extent, scala.Option<Object> extendedCountryCode, scala.Option<Object> locationTableVersion, scala.Option<PreciseTMCInformation> preciseTMCInfo)
    • TMCLocationReference

      public TMCLocationReference(int locationID, short countryCode, short locationTableNumber, boolean direction, boolean bothDirections, Optional<Object> extent, Optional<Object> extendedCountryCode, Optional<Object> locationTableVersion, Optional<PreciseTMCInformation> preciseTMCInfo)
  • Method Details

    • apply

      public abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9)
    • toString

      public static String toString()
    • locationID

      public int locationID()
    • countryCode

      public short countryCode()
    • locationTableNumber

      public short locationTableNumber()
    • direction

      public boolean direction()
    • bothDirections

      public boolean bothDirections()
    • extent

      public scala.Option<Object> extent()
    • extendedCountryCode

      public scala.Option<Object> extendedCountryCode()
    • locationTableVersion

      public scala.Option<Object> locationTableVersion()
    • preciseTMCInfo

      public scala.Option<PreciseTMCInformation> preciseTMCInfo()
    • getLocationID

      public int getLocationID()
    • getCountryCode

      public short getCountryCode()
    • getLocationTableNumber

      public short getLocationTableNumber()
    • isDirection

      public boolean isDirection()
    • isBothDirections

      public boolean isBothDirections()
    • getExtent

      public Optional<Object> getExtent()
    • getExtendedCountryCode

      public Optional<Object> getExtendedCountryCode()
    • getLocationTableVersion

      public Optional<Object> getLocationTableVersion()
    • getPreciseTMCInfo

      public Optional<PreciseTMCInformation> getPreciseTMCInfo()