Declaration [src]

gweather_location_find_by_station_code (
  GWeatherLocation* world,
  const char* station_code

Description [src]

Retrieves the weather station identifier by station_code.

Note that multiple instances of the same weather station can exist in the database, and this function will return any of them, so this not usually what you want.

See gweather_location_deserialize() to recover a stored location.



Type: const char*

A 4 letter METAR code.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: GWeatherLocation

A weather station level location for the given station code, or NULL if none exists in the database.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.