Package-level declarations
Types
Link copied to clipboard
class AdministrativeUnitNameGeocoderRetriever @Inject constructor(geocoder: Geocoder) : AdministrativeUnitNameRetriever
An implementation of the AdministrativeUnitNameRetriever interface that utilizes the provided Geocoder API to retrieve administrative unit information (e.g., city, state, country) based on geographical coordinates. This class operates asynchronously and emits successfully retrieved information through a returned Flow of AdministrativeUnitName objects.
Functions
Link copied to clipboard
Converts an Address object, which represents a physical location, into an AdministrativeUnitName object. This AdministrativeUnitName object provides a structured breakdown of the administrative units associated with the address (e.g., city, state, country).