findLocations

open suspend fun findLocations(query: String, lang: String): List<WeatherLocation>

Find locations based on a query string. The default implementation uses the Android Geocoder and returns a list of lat lon locations. It also supports lat/lon coordinates in the format "lon name" or "lon".

Parameters

query

the query string

lang

the ISO 639 language code of the language that the user has set for the launcher. Should be used for location names if supported by the provider.