retrieve

open override fun retrieve(geoLocation: GeoLocation): Flow<AdministrativeUnitName>

Retrieves administrative unit information (e.g., city, state, country) for a given geographical location using the provided Geocoder API. This class operates asynchronously and emits successfully retrieved AdministrativeUnitName objects through the returned Flow of AdministrativeUnitName.

In case of geocoding failures, the class implements a retry mechanism with a maximum of 3 attempts.

Return

a Flow that emits successfully retrieved AdministrativeUnitName objects for the provided location.

Parameters

geoLocation

the geographical location (latitude and longitude) for which to retrieve administrative unit information.