Interface TileLoader<T>

Type Parameters:
T - The tile data type
All Superinterfaces:
DataLoader<TileId,T>
All Known Subinterfaces:
CachingTileLoader<T>
All Known Implementing Classes:
com.here.platform.location.dataloader.core.AbstractTileLoaderDecorator, AbstractTileLoaderDecorator, com.here.platform.location.dataloader.core.internal.BaseTileLoader, LRUCachingTileLoader, StandaloneByteArrayTileLoader, TransformingTileLoader, com.here.platform.location.dataloader.core.TransformingTileLoader

public interface TileLoader<T> extends DataLoader<TileId,T>
Deprecated.
Use methods based on OptimizedMapLayers instead. Since SDK 2.54.
Loads tile data.

  • Method Details

    • get

      scala.Option<T> get(TileId tileId)
      Deprecated.
      Gets data for a single tileId.

      Specified by:
      get in interface DataLoader<TileId,T>
      Parameters:
      tileId - The tile ID to retrieve the data for
      Returns:
      The data of the successfully loaded tile, or None
    • getAll

      scala.collection.Iterable<scala.Tuple2<TileId,scala.Option<T>>> getAll(scala.collection.Iterable<TileId> tileIds)
      Deprecated.
      Gets data for tileIds.

      Specified by:
      getAll in interface DataLoader<TileId,T>
      Parameters:
      tileIds - The tile IDs to retrieve the data for
      Returns:
      The data associated with the successfully loaded tiles, or None
    • partitionIds

      scala.collection.Iterator<TileId> partitionIds()
      Deprecated.
      Gets the tile IDs available from this loader.

      This will only return tile IDs for which the get(com.here.platform.location.inmemory.geospatial.TileId) method will return a non-empty value.

      Whereas the TileResolver can be used to determine all of the tile IDs that cover a certain area of the earth (or even the whole earth), it does not know which tiles actually have data. This method allows you to discover tiles that actually contain data.

      E.g. a data loader for a layer containing information related to the road network will probably have data for tiles covering large cities, but not for tiles in the middle of the ocean.

      Specified by:
      partitionIds in interface DataLoader<TileId,T>
    • resolver

      TileResolver resolver()
      Deprecated.
      A resolver for TileIds that can be used with this TileLoader.