Skip to content

fix(weather_status): Pass address as param to OSM API - #38665

Merged
susnux merged 1 commit into
masterfrom
fix/weather_status-osm-api
Jun 25, 2023
Merged

fix(weather_status): Pass address as param to OSM API#38665
susnux merged 1 commit into
masterfrom
fix/weather_status-osm-api

Conversation

@susnux

@susnuxsusnux commented Jun 6, 2023

Copy link
Copy Markdown
Contributor

Summary

For some addresses the location can not be fetched although the address is correct.
For example Bruxelles will fetch the forecast initially but when adding it as a favorite and selecting it, it does not work because the address is saved as Ville de Bruxelles - Stad Brussel, België / Belgique / Belgien which contains the / character.

This is simply solved by passing the address as the query parameter (as the OSM documentation states).

Screenshots (screen cast gifs)

beforeafter
beforeafter

Checklist

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnuxsusnux added this to the Nextcloud 28 milestone Jun 6, 2023
@susnux
susnux requested review from a team, ArtificialOwl, blizzz, icewind1991 and julien-nc and removed request for a teamJune 6, 2023 10:59
@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable27

@susnuxsusnux changed the title fix(weather_status): Pass address as paramfix(weather_status): Pass address as param to OSM APIJun 6, 2023
@susnux
susnux requested a review from nfebeJune 14, 2023 14:50

@nfebenfebe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@tcitworld

Copy link
Copy Markdown
Member

This also fixes another issue caused by Nominatim changing their API, see osm-search/Nominatim#3134 and nextcloud/maps#1111

Can we backport to stable26 and 25?

@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable26

@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable25

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@susnux@tcitworld@blizzz@nfebe