java.lang.Object
com.here.platform.location.integration.optimizedmap.navigationattributes.TrafficMessageChannelCode

public class TrafficMessageChannelCode extends Object
This is an experimental API. It may be removed or changed from one version to the next.

A Traffic Message Channel (TMC) road section.

A TMC road section is specified by a country (ebuCountryCode and whenever possible an extendedCountryCode), table number, location code, direction (positive or negative), and section type (internal or external).

  • Constructor Details

    • TrafficMessageChannelCode

      public TrafficMessageChannelCode(long bitPacked, byte ecc)
  • Method Details

    • apply

      public static TrafficMessageChannelCode apply(long bitPacked, byte ecc)
    • apply

      public static TrafficMessageChannelCode apply(short ebuCountryCode, scala.Option<Object> extendedCountryCode, short tableNumber, int locationCode, TmcDirection direction, TmcSectionType sectionType)
    • bitPackLong

      public static long bitPackLong(short ebuCountryCode, short tableNumber, int locationCode, TmcDirection direction, TmcSectionType sectionType)
    • eccByte

      public static byte eccByte(scala.Option<Object> extendedCountryCode)
    • locationCode

      public int locationCode()
    • tableNumber

      public short tableNumber()
    • ebuCountryCode

      public short ebuCountryCode()
    • locationDisposition

      public TmcLocationDisposition locationDisposition()
    • extendedCountryCode

      public scala.Option<Object> extendedCountryCode()
      This is an experimental API. It may be removed or changed from one version to the next.

      The extended country code is extremely experimental, and may be removed even if the rest of the TrafficMessageChannelCode remains as is.

    • hasSameTmcTable

      public boolean hasSameTmcTable(TrafficMessageChannelCode other)
    • hasSameTmcId

      public boolean hasSameTmcId(TrafficMessageChannelCode other)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object