Callbacks

FilterFunc (location, *user_data)

Details

GWeather.FilterFunc(location, *user_data)
Parameters:
  • location (GWeather.Location) – the location to check

  • user_data (object or None) – data passed to [method`GWeather`.Location.find_nearest_city_full]

Returns:

FALSE if the location should be skipped, and TRUE otherwise

Return type:

bool

A filter function for locations.