get_city_name


Description:

public string? get_city_name ()

Retrieves the city name for the given location.

For a `GWEATHER_LOCATION_CITY` or `GWEATHER_LOCATION_DETACHED` location, this method is equivalent to [method@GWeather.Location.get_name].

For a `GWEATHER_LOCATION_WEATHER_STATION` location, this is equivalent to calling [method@GWeather.Location.get_name] on the location's parent.

For other locations this method will return `NULL`.

Parameters:

this

a Location

Returns:

the city name of the location