DataSource

Interface for a data source that provides objects of a specific type inside a requested bounding box.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard

Adds a DataUpdatedListener. The data source notifies the listener on any update for any of the tiles of interest.

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun provide(boundingBox: GeoBoundingBox): HorizonDataSnapshot

Requests data for a specific bounding box.

Link copied to clipboard
Link copied to clipboard
abstract fun update(areaOfInterest: AreaOfInterest)

Updates context of the DataSource with the latest AreaOfInterest.

Properties

Link copied to clipboard
abstract val type: DataType

Type of DataObject provided by the DataSource.