java.lang.Object
com.here.platform.location.integration.optimizedmap.TileDecoders

public class TileDecoders extends Object
Provides decoders for all Optimized Map for Location Library layers.

Each decoder accepts an InputStream, parses the protobuf-encoded partition, and converts it into the corresponding in-memory representation within the Library model.

  • Constructor Details

    • TileDecoders

      public TileDecoders()
  • Method Details

    • geometry

      public static GeometryTile geometry(InputStream inputStream)
      Decoder for the Geometry layer.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Geometry layer data.
    • length

      public static UndirectedPropertyTile<Object> length(InputStream inputStream)
      Decoder for the Length layer.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Length layer data.
    • mapping

      public static MappingTile mapping(InputStream inputStream)
      Decoder for the Mapping layer.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Mapping layer data.
    • restrictedManoeuvre

      public static EdgePropertyTile<Object> restrictedManoeuvre(InputStream inputStream)
      Decoder for the Restricted Manoeuvre layer.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Restricted Manoeuvre layer data.
    • routingGraph

      public static GraphTile routingGraph(InputStream inputStream)
      Decoder for the Routing Graph layer.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Routing Graph layer data.
    • roadAccess

      public static RangeBasedPropertyTile<Object> roadAccess(InputStream inputStream)
      Decoder for the Road Access layer.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Road Access layer data.
    • freeFlowSpeed

      public static RangeBasedPropertyTile<Object> freeFlowSpeed(InputStream inputStream)
      Decoder for the Free Flow Speed layer.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Free Flow Speed layer data.
    • tmcTable

      public static com.here.platform.pb.location.optimizedmap.tmc.v2.tmc.TmcTablePartition tmcTable(InputStream inputStream)
      Decoder for the Tmc layer.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Tmc layer data.
    • roadAttributes

      public static MultiPropertyTile roadAttributes(InputStream inputStream)
      Decoder for the Road attributes layer that retains all available attributes.

      Recommended when full access to all Road attributes is required.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Road attributes data.
    • roadAttributes

      public static MultiPropertyTile roadAttributes(scala.collection.Seq<RoadAttributeDescription> attributes, InputStream inputStream)
      Decoder for the Road attributes layer that retains only the specified attributes.

      This decoder reads the protobuf data from the provided inputStream, but keeps only the attributes explicitly specified in the attributes parameter. It helps reduce memory consumption and improve performance.

      Note: Accessing an excluded attribute at runtime will result in an IllegalArgumentException.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Road attributes data.
      attributes - The list of Road attributes to retain after decoding.
    • advancedNavigationAttributes

      public static MultiPropertyTile advancedNavigationAttributes(InputStream inputStream)
      Decoder for the Advanced Navigation attributes layer that retains all available attributes.

      Recommended when full access to all Advanced Navigation attributes is required.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Advanced Navigation attributes data.
    • advancedNavigationAttributes

      public static MultiPropertyTile advancedNavigationAttributes(scala.collection.Seq<AdvancedNavigationAttributeDescription> attributes, InputStream inputStream)
      Decoder for the Advanced Navigation attributes layer that retains only the specified attributes.

      This decoder reads the protobuf data from the provided inputStream, but keeps only the attributes explicitly specified in the attributes parameter. It helps reduce memory consumption and improve performance.

      Note: Accessing an excluded attribute at runtime will result in an IllegalArgumentException.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded Advanced Navigation attributes data.
      attributes - The list of Advanced Navigation attributes to retain after decoding.
    • adasAttributes

      public static MultiPropertyTile adasAttributes(InputStream inputStream)
      Decoder for the ADAS attributes layer that retains all available attributes.

      Recommended when full access to all ADAS attributes is required.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded ADAS attributes data.
    • adasAttributes

      public static MultiPropertyTile adasAttributes(scala.collection.Seq<AdasAttributeDescription> attributes, InputStream inputStream)
      Decoder for the ADAS attributes layer that retains only the specified attributes.

      This decoder reads the protobuf data from the provided inputStream, but keeps only the attributes explicitly specified in the attributes parameter. It helps reduce memory consumption and improve performance.

      Note: Accessing an excluded attribute at runtime will result in an IllegalArgumentException.

      Parameters:
      inputStream - The input stream containing the protobuf-encoded ADAS attributes data.
      attributes - The list of ADAS attributes to retain after decoding.