After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 753332 - City "Międzyzdroje" is not in Germany.
City "Międzyzdroje" is not in Germany.
Status: RESOLVED FIXED
Product: gnome-weather
Classification: Applications
Component: general
3.16.x
Other Linux
: Normal minor
: ---
Assigned To: GNOME Weather Maintainer(s)
GNOME Weather Maintainer(s)
: 775669 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-08-06 20:19 UTC by CapSel
Modified: 2016-12-22 16:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description CapSel 2015-08-06 20:19:24 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 :)
Comment 1 Giovanni Campagna 2015-08-17 03:03:48 UTC
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!
Comment 2 Giovanni Campagna 2016-12-22 15:52:27 UTC
I pushed a change to the algorithm to locate cities in master,
and with that, Międzyzdroje is correctly located in Poland.
Comment 3 Giovanni Campagna 2016-12-22 16:06:50 UTC
*** Bug 775669 has been marked as a duplicate of this bug. ***