Datastore class abstract

Abstract base class for map data storage and retrieval.

This class defines the interface for accessing map data from various sources such as files, databases, or network services. It provides methods for reading different types of map data (labels, POIs, general map data) for individual tiles or tile ranges.

Key responsibilities:

  • Tile-based data access with single tile and area queries
  • Separation of different data types (labels, POIs, general map data)
  • Boundary checking and tile support validation
  • Resource management through dispose pattern

Constructors

Datastore()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Releases resources held by the datastore. Should be called when the datastore is no longer needed.
getBoundingBox() Future<BoundingBox>
Returns the geographic area covered by this datastore.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readLabels(Tile upperLeft, Tile lowerRight) Future<DatastoreBundle?>
Reads label data for a rectangular area defined by two corner tiles.
readLabelsSingle(Tile tile) Future<DatastoreBundle?>
Reads label data for a single tile.
readMapData(Tile upperLeft, Tile lowerRight) Future<DatastoreBundle>
Reads complete map data for a rectangular area.
readMapDataSingle(Tile tile) Future<DatastoreBundle?>
Reads complete map data for a single tile.
readPoiData(Tile upperLeft, Tile lowerRight) Future<DatastoreBundle?>
Reads POI data for a rectangular area defined by corner tiles.
readPoiDataSingle(Tile tile) Future<DatastoreBundle?>
Reads Point of Interest (POI) data for a single tile.
supportsTile(Tile tile) Future<bool>
Checks if the datastore contains data for the specified tile.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited