get_country


Description:

public unowned string? get_country ()

Gets the ISO 3166 country code of the given location.

For `GWEATHER_LOCATION_WORLD` and `GWEATHER_LOCATION_REGION`, this function returns `NULL`.

Parameters:

this

a Location

Returns:

the location's country code




2022 vala-language.org