LocationService

Service for handling location operations.

Functions

Link copied to clipboard
fun getCity(location: Location?): String?

Get the city name from the location.

Link copied to clipboard

Get the current location.

Link copied to clipboard

Get the location from the city name.

Link copied to clipboard
fun initialize(application: Application)

Initialize the location service. Needs to be called before using the location service.

Link copied to clipboard
fun setLocale(locale: Locale)

Set the locale for the geocoder.