retrieve

abstract fun retrieve(): Flow<List<AdministrativeUnit>>

Retrieves a stream (Flow) of all AdministrativeUnit objects from the data source.

Return

a Flow of a list containing all AdministrativeUnit objects.


abstract fun retrieve(administrativeLevel: AdministrativeLevel): Flow<List<AdministrativeUnit>>

Retrieves a stream (Flow) of AdministrativeUnit objects filtered by the provided administrativeLevel.

Return

a Flow of a list containing AdministrativeUnit objects matching the administrative level.

Parameters

administrativeLevel

the level (e.g., state, county, city) used to filter the units.