10
105
Fork
You've already forked web
30

Weather widget wrong location #1966

Open
opened 2026年04月04日 14:59:59 +02:00 by yoyo34 · 7 comments
Contributor
Copy link

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.

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.

@yoyo34 wrote in #1966 (comment):

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... 🫤

@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... 🫤
Author
Contributor
Copy link

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.

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.
Owner
Copy link

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.

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.

@pmiossec wrote in #1966 (comment):

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

So nothing that could really being done... 🫤

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 #1966 (comment):

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?

@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?
Member
Copy link

@yoyo34 wrote in #1966 (comment):

Baranzate is just a small suburb

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

@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)

@n4n5 wrote in #1966 (comment):

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

I made the same guess (but 🤷)

@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 🤷)
Author
Contributor
Copy link

@n4n5 wrote in #1966 (comment):

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.

@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.
Sign in to join this conversation.
No Branch/Tag specified
master
abostats
SynchroM-master
gps
embeddings
lysios-patch-5
lysios-patch-4
lysios-patch-3
lysios-patch-2
lysios-patch-1
abo-serveur2
clim
zone-en-favori
categories_toujours_visibles
rechercher_ici_avant_resultats
test-2365
panoramax-contribution
add-categories-validations
gel-bug-prod
osm-note-2
broken
wikidata_booking
fuse7.3
lysios-patrimoine-3
gps2
atproto-fix-2
styles-secondaires-mais-maison
atproto-scopes
itineraire-printemps-2026
modal-sheet-5.6
nlnet-cost-climate-perf
pb-icones-religieux
couvoiture
etiennejr-patch-2
meteo-fainéante
logo-static-url
poc-page-vitrine
remove-compass
test-reproduce-1795
display-cycleway-lanes-2
poc-image
add-media-condition
mapterhorn
test-indoor-equal
outdoors-VS-indoorEqual
hiking-colors
fix-blog-typing
poc-next-international
fix-map-style-modal-not-closing
i18n
hide-odd-zoom-levels
filter_categories
resume_wikipedia
deplacement_bouttons
fix-1095
mobile_permettre_selection
position-carte-initiale
dégradé-icônes
better_wikipedia
affichage_donnees_wikidata
mobile-permettre-selection
avis-details
perf-seo
modal-sheet-5
plans-novembre
display-cycleway-lanes
fix-1227
fix-1234
etiennejr-patch-1
update-1240
fix-1236
fix-1131
photon-search-street
fix-1221
article-avis
net-haut-zoom
baies-moins-visibles
belles-fiches-lieu
fix-1157
bug-page-vie-privée
use-watername
fix-1176
carte-du-onde
fix-1166
page-news
tchou
add-icon-alias
vitesse
photon-opensearch
private-in-italic
bâtiments-3D
merge-categories
handle-private-highway
improve-findcategory
injection-pmtiles
fix-1128
check-icons
update-readme
category-rugby
bug-position-carte-vs-lieu
limites-vitesse
improve-find-category-from-tags-v2
integrer
document-osmfeature
translate-document
velo-fin-aout-25
velo-ete-2025
moins-de-maptiler
planet-pmtiles-tilemaker
fix-1048
panoramax-leger
plume
horaires-i18n
planet
maj-deps-juillet-2025
improve-find-category-from-tags
bug-encart
interactions-encart-mobile
clic-on-station
fix-1028
fix-1014
edit
add-big-rivers
add-shortbread-tiles
handle-deleted-osm-elements-v2
codeberg
improve-useEffect
immoloc
update-dashboard
analyze
terradraw
sombre2
calendar
poi-sprites-using-svg
style-sombre
sprites
annuaire
motis-gtfs-attributes
next-styled-components
dev
cool2
cool
panoramax-angle
env-static-urls
borders-only
panoramax2
intelligence
debug-iles
nouveau-serveur
france-protomaps
turbo
fouss/cartes-#338
blog2
legislatives
presentation
pas-de-geoloc-si-hash-different
protomaps
vaul
carte-trains
citiz
maj-paquets
icones
ui2
bblog
voyagevoyage
test-image-origine
bugimagefin
searchParams
voyage
avion
perf
studio
piscine
journée
année
journée-transition
score-dès-acceuil
fix-space-problem
rebase-5août
correspondance
règles-séparées
indeps-acre
demo
indeps
indeps-cachés
indication-temps-plein
indeps-refactor-simulations
indeps-vue-comparaison
indeps-inversion
barème-continu
indeps-démo
textes-branches-sécu
engine-enum
2019
transport
publicodes
as
infrance-nouvelle-landing
better-translation
co2
simplifATMP
controle-SMIC
webi18n
bug-avantages-en-nature
revert-352-infrance-navigation-v2
laem-patch-1
robots.txt
improve-perf
iframe-bugfix
quickfixes
lib
irsimple
hiringinfrance.com
dégradé
refstate
johan
zrr
logo-interactif
revert-216-improve-tracking
redesign2
zrr2
fixtrad
correction-salaire-brut
petit-state
alien-consolidate
translate-ui
npm
alien-brut-net
translatable
différent
ir18
fix-typo
add-tracking
fix-collect-missing
défauts-partout
fix-double-unfold-three
fix-double-unfold
versement-transport
blocker-questions
v3
v2.1
v2
v1
v0.6.4
v0.6.3
v0.6.2
v0.6.1
v0.6.0
0.7.0
v0.5.1
v0.5.0
v0.4.2
v0.4.1
v0.4.0
v0.3.3
v0.3.2
v0.3.1
v0.3
v0.2
v0.1-cdd-alpha
v0-démo-tag-nav
Labels
Clear labels
🎨 Design
À propos de l'interface et de l'UX
💡 Idée
Nouvelle feature à intégrer
question
Further information is requested
🌍 OSM
À propos de l'affichage et l'édition des éléments OSM
🌱 Amélioration
Amélioration/fix de l'existant
🐞 Bug
Something isn't working
📊 SEO
📋 Catégories
À propos des catégories de recherche et de l'annuaire
📖 Wiki
📝Avis
A propos de la fonction avis et de bluesky
📢 Oyez
📷 Photos
A propos des photos (sources, affichage)
🔍Recherche
A propos de la barre de recherche et de photon
🔥 Actuel
🔧 tech
🖌 Styles
Styles de la carte
🧝i18n
🧪 R&D
🚍 Transports
🚙 Voiture
🚨Prioritaire
Ticket à traiter rapidement
🚲Vélo
Cartes
climat
Communication
demo
Cette branche doit être déployée comme une démo
dependencies
Pull requests that update a dependency file
javascript
Pull requests that update javascript code
Pas urgent
Plein-air
Tuiles
Verso
Vieux
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cartes/web#1966
Reference in a new issue
cartes/web
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?