GNOME Bugzilla – Bug 753332
City "Międzyzdroje" is not in Germany.
Last modified: 2016-12-22 16:06:50 UTC
City called "Międzyzdroje" is reported to be in "Germany". Międzyzdroje is a Polish city, near the border with Germany. Świnoujście is much closer to the border. I believe all cities with "ąęćłńóśźż" in name, located "near Poland" according to gnome weather, should be "relocated" to Poland :)
It is actually a different problem: the city is not in our database. When you search for a city that is not known to the library using the local data, we query an online service, find the coordinates for the city, and then pick the closest city in the db to fill out all the other info, such as the weather station code and the country. In your particular case, that means we find a closer city in Germany instead of Poland, and we get the country wrong. The proper fix for this would be to be smarter in filling in the missing data, but that would require more online service querying and some invasive code changes. I'm not sure that will happen unless some volunteer steps up to do the work. As a workaround, I can add Międzyzdroje, and any other city too close to the German border, in the local database so that libgweather knows about them. To do so, I will need the coordinates and the 4 letter ICAO code of the closest airport or weather station. Thank you!
I pushed a change to the algorithm to locate cities in master, and with that, Międzyzdroje is correctly located in Poland.
*** Bug 775669 has been marked as a duplicate of this bug. ***