Navigation SDK is currently available only to select customers. Contact sales to learn more.

TileDescriptor

public final class TileDescriptor extends AbstractSafeParcelable

Tile descriptor for use with ExternalCache.

Note that the external cache is only meant for base map vector tiles, so the API implementation hardcodes the tile type. If this needs to be generalized, update this class to return both the tile type and tile data.

Constant Summary

int NO_DATA_VERSION
int NO_PER_TILE_EPOCH

Inherited Constant Summary

Field Summary

public final byte attributes
public final int dataVersion
public final int perTileEpoch
public final int protoVersion
public final byte[] tileData

Public Constructor Summary

TileDescriptor(byte[] tileData, int protoVersion, byte attributes, int dataVersion, int perTileEpoch)
Constructs a TileDescriptor that will be used by the API to support an external cache.

Inherited Method Summary

Constants

public static final int NO_DATA_VERSION

Constant Value: -1

public static final int NO_PER_TILE_EPOCH

Constant Value: -1

Fields

public final byte attributes

public final int dataVersion

public final int perTileEpoch

public final int protoVersion

public final byte[] tileData

Public Constructors

public TileDescriptor (byte[] tileData, int protoVersion, byte attributes, int dataVersion, int perTileEpoch)

Constructs a TileDescriptor that will be used by the API to support an external cache. See ExternalCache for details on how the various fields are used.

Parameters
tileData Byte array with actual tile data. Must be a decrypted and decompressed DRIVEABOUT_V4 tile.
protoVersion The map tile response version number. Expected to be V4_FORMAT_VERSION for DRIVEABOUT_V4 tiles.
attributes The map tile response tile attributes. Denotes whether there is offlineable region inside the tile.
dataVersion The map tile response tile edition, or NO_DATA_VERSION if unknown. A tile update request will be sent if this is different from the data version known to tile store.
perTileEpoch The Paint tile epoch (version), or NO_PER_TILE_EPOCH if unknown. Used by the server to determine if a new tile version should be returned in per-tile update requests.