← Retour aux issues

Weather widget wrong location

publié le , mis à jour
Avatar Codeberg de yoyo34yoyo34

It seems to work correctly in France, but elsewhere the weather widget shows the wrong location. Take the example from the screenshot. Baranzate is just a small suburb in the north and is not even on the map canvas. Also, if I zoom further into Milan at street zoom, it always shows Baranzate.

  1. Avatar Codeberg de pmiossecpmiossec

    @yoyo34 wrote in https://codeberg.org/cartes/web/issues/1966#issue-4167333:

    It seems to work correctly in France, but elsewhere the weather widget shows the wrong location.

    I could have a look but the meteofrance api is far for being perfect for isage putside of France. But that's the api that provide the name when requested with geocoordinates.

    So nothing that could really being done... 🫤

  2. Avatar Codeberg de yoyo34yoyo34

    I understand. I also compared the temperature values with official measured data at some places in Italy, Switzerland and Austria. They are also quite inaccurate (a variance up to 10°).

    However, if you want, you can close this issue. It works in France, and although there are some good free weather APIs, I think implementing one abroad would be quite a lot of work.

  3. Avatar Codeberg de laemlaem

    No please keep it open ! Note that the new widget does not make a call spontaneously, user action is necessary. Which opens the use of other APIs to complete MeteoFrance for France. It is a bit of work, but we might find a free source of weather data with a good data policy.

  4. Avatar Codeberg de pmiossecpmiossec

    @pmiossec wrote in https://codeberg.org/cartes/web/issues/1966#issuecomment-12652761:

    But that's the api that provide the name when requested with geocoordinates.

    So nothing that could really being done... :face_with_diagonal_mouth:

    I have checked (and forgotten to give feedback) and it is the api that always return Baranzate and never Milan for the given geocoordinates. So nothing that we could really fix.

    @yoyo34 wrote in https://codeberg.org/cartes/web/issues/1966#issuecomment-12666135:

    I also compared the temperature values with official measured data at some places in Italy, Switzerland and Austria. They are also quite inaccurate (a variance up to 10°).

    That the name is a little misleading is not really a big problem because the api is still returning the weather for the coordinates. But if the weather data are inaccurate, it's a more important problem.

    Can you share a little how you did your verifications?

  5. Avatar Codeberg de n4n5n4n5

    @yoyo34 wrote in https://codeberg.org/cartes/web/issues/1966#issue-4167333:

    Baranzate is just a small suburb

    Doesn't Meteo France shows the local nearest station? (just a guess)

  6. Avatar Codeberg de pmiossecpmiossec

    @n4n5 wrote in https://codeberg.org/cartes/web/issues/1966#issuecomment-12739164:

    Doesn't Meteo France shows the local nearest station? (just a guess)

    I made the same guess (but 🤷)

  7. Avatar Codeberg de yoyo34yoyo34

    @n4n5 wrote in https://codeberg.org/cartes/web/issues/1966#issuecomment-12739164:

    Doesn't Meteo France shows the local nearest station? (just a guess)

    Not really. I tested it also where I live (Austria) but it shows villages where no weather stations are. And it ignores big citys where stations are: Munich, Ljubljana, Milano, Torino... to name a few.


✏️ Participer à la discussion