detect_nearest_city


Description:

[ CCode ( finish_instance = false ) ]
public async Location detect_nearest_city (double lat, double lon, Cancellable? cancellable) throws Error

Initializes geocode reversing to find place for (lat, lon) coordinates.

Calls the callback function passed by user when the result is ready.

The given location must be at most a gweather_location_adm1 location; this restriction may be lifted in a future version.

Parameters:

this

the parent location, which will be searched recursively

lat

Latitude, in degrees

lon

Longitude, in degrees

cancellable

a cancellable instance

callback

callback function

user_data

user data passed to callback