set_city


Description:

public bool set_city (string? city_name, string code)

Sets this's location to a city with the given code, and given city_name, if non-null.

If there is no matching city, sets this's location to null.

Parameters:

this

a LocationEntry

city_name

the city name, or null

code

the METAR station code

Returns:

true if this's location could be set to a matching city, false otherwise.




2022 vala-language.org