Administrative Unit Name Data Source
interface AdministrativeUnitNameDataSource
Interface representing a data source for managing AdministrativeUnitName objects. This data source could be local storage, a remote server, or another solution for storing administrative unit names.
Inheritors
Functions
Link copied to clipboard
abstract suspend fun create(geoLocation: GeoLocation, administrativeUnitName: AdministrativeUnitName)
Creates a new AdministrativeUnitName in the data source, associating it with the provided geoLocation. The reason for the geoLocation parameter might be to associate the name with a specific geographic location for future lookups or other purposes.
Link copied to clipboard
abstract fun retrieveAdministrativeUnitNameWithExistentCartographicBoundaries(): Flow<Pair<AdministrativeUnitName, List<CartographicBoundary>>>
Retrieves a stream (Flow) of pairs containing an AdministrativeUnitName object and a list of associated CartographicBoundary objects. This Flow will emit updates whenever a new administrative unit name is created or an existing one is updated.