Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swiss municipalities mutations audit #341

Merged
merged 11 commits into from
Sep 9, 2024
Merged

Swiss municipalities mutations audit #341

merged 11 commits into from
Sep 9, 2024

Conversation

ptbrowne
Copy link
Member

@ptbrowne ptbrowne commented Sep 5, 2024

Audit mutations of municipality

Municipalities in Switzerland change over time. These "mutations" are published as a list here : https://www.agvchapp.bfs.admin.ch/de/mutations/results?EntriesFrom=01.01.2023&EntriesTo=01.01.2024. It can be helpful
to review side by side on a map what was done.

This PR adds a page that provides a side by side comparison of two different years.

Comments

  • At first the input was coming from a copy/paste of the HTML table from the site. Then I changed to use an API route. The API route loads the aforementioned mutations page and extracts the data from the "<script />". It's a bit hacky but I am not aware of an API.
  • It loads the map data from the year of the mutation and the (year - 1) of the mutations.

Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
swiss-maps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 9, 2024 9:57am

@ptbrowne ptbrowne changed the title Mutations Swiss municipalities mutations audit Sep 9, 2024
Copy link
Contributor

@shuaiey shuaiey left a comment

Choose a reason for hiding this comment

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

👍 just one personal opinion: I think this should be a tool in swiss maps (placed in a new section or so) but not an example.

@ptbrowne
Copy link
Member Author

ptbrowne commented Sep 9, 2024

I did not really know where to put it to be honest and I did not think that having it as the same level as "Examples", "Documentation" etc... would be good, so this is why I put it in examples. Would you put a "Tools" section only with this ?

@ptbrowne
Copy link
Member Author

ptbrowne commented Sep 9, 2024

I would consider this again if we have another tool 👍 Thanks for the suggestion.

@ptbrowne ptbrowne merged commit 7988312 into main Sep 9, 2024
3 checks passed
@ptbrowne ptbrowne deleted the mutations branch September 9, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants