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 [[email protected]_name] .

For a `GWEATHER_LOCATION_WEATHER_STATION` location, this is equivalent to calling [[email protected]_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




2022 vala-language.org