AdministrativeUnitDataSource
Interface representing a data source for managing AdministrativeUnit objects. This data source could be local storage, a remote server, or another solution for storing administrative unit data.
Inheritors
Functions
Retrieves a stream (Flow) of all AdministrativeUnit objects from the data source.
Retrieves a stream (Flow) of AdministrativeUnit objects filtered by the provided administrativeLevel.
Retrieves a stream (Flow) of Region objects that are located entirely within the specified boundingBox. By default, this method retrieves active regions, however the definition of "active" might depend on the specific implementation.
Retrieves a stream (Flow) of the currently selected AdministrativeUnit object. The Flow will emit whenever the selected unit changes.
Updates the currently selected AdministrativeUnit
based on the provided index. The behavior depends on the implementation, but it's typically assumed that the index corresponds to the order in which units were retrieved using methods like retrieve
or retrieveByLevel
.