GeocoderProvider

@Module
object GeocoderProvider

Provides a Geocoder instance to the AdministrativeUnitNameGeocoder. This class uses the Geocoder to retrieve the Address objects containing information for building AdministrativeUnit objects. This module is installed in the SingletonComponent.

By default, this function provides a Geocoder object using US as the locale. If your application requires using a different locale for geocoding, consider injecting a custom Geocoder instance instead of relying on this default provider.

Functions

Link copied to clipboard
@Provides
fun provideGeocoder(context: Context): Geocoder

Provides the Geocoder instance using the application context and US locale.