I recently discovered libgweather
and have already submitted a couple of small merge requests (now merged) for Locations.xml
, renaming and adding comments for Korean cities.
Now, I wish to add a city to Locations.xml
—Ulsan, a metropolitan city in South Korea with a population of more than 1.1 million—but I’m not sure how to go about it, even after looking at examples within the file.
As I understand it, libgweather
gets its weather data from METAR weather stations. So, when I add the city, do I need to include a METAR station near it?
That is, to add Ulsan to Locations.xml
, is it sufficient to add just the name and the coordinates
<city>
<_name>Ulsan</_name>
<coordinates>35.539169 129.311913</coordinates>
</city>
or, should I add the ICAO code for Ulsan Airport within the tag
<city>
<_name>Ulsan</_name>
<code>RKPU</code>
<coordinates>35.539169 129.311913</coordinates>
</city>
or, should I add Ulsan Airport as a separate location and supply only the name and the coordinate for the city?
<location>
<_name>Ulsan Airport</_name>
<code>RKPU</code>
<coordinates>35.593333 129.351667</coordinates>
</city>
<city>
<_name>Ulsan</_name>
<coordinates>35.539169 129.311913</coordinates>
</city>
I see that most cities in Locations.xml have only the name and the coordinates, but then where does the weather data for that city come from?
Is it that every city has a corresponding which supplies a METAR weather station associated with the city from which weather data is pulled?
Thanks.