Method
GWeatherLocationdetect_nearest_city
Declaration [src]
void
gweather_location_detect_nearest_city (
  GWeatherLocation* loc,
  double lat,
  double lon,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)
Description [src]
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.
This method completes asynchronously. Use () inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
- lat
- 
            Type: doubleLatitude, in degrees. 
- lon
- 
            Type: doubleLongitude, in degrees. 
- cancellable
- 
            Type: GCancellableA cancellable instance. The argument can be NULL.The data is owned by the caller of the method. 
- callback
- 
            Type: GAsyncReadyCallbackCallback function. The argument can be NULL.
- user_data
- 
            Type: gpointerUser data passed to callback.The argument can be NULL.The data is owned by the caller of the method.