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

Road relations #386

Merged
merged 6 commits into from
Feb 24, 2025
Merged

Road relations #386

merged 6 commits into from
Feb 24, 2025

Conversation

wipfli
Copy link
Collaborator

@wipfli wipfli commented Feb 21, 2025

Introduces infrastructure to set road minzooms based on relation info and country code.
For now, it only changes things in the US, but more countries can be added later on.
Here is a demo:
https://pmtiles.io/?url=https%3A%2F%2Fprotomaps.dev%2F%7Ewipfli%2Froad-relations.pmtiles#map=3.9/39.83/-96.61
The demo was done on a reduced planet to speed up things. I used

osmium tags-filter planet-latest.osm.pbf w/highway=motorway w/highway=trunk r/route -o planet-filtered.osm.pbf --progress

Also, this pull request should only affect roads up to zoom 6.

@bdon
Copy link
Member

bdon commented Feb 21, 2025

Great use of the country-coder. This addresses #221 and #213 right?

Can we unit test this logic somehow?

@wipfli
Copy link
Collaborator Author

wipfli commented Feb 21, 2025

This addresses #221 and #213 right?

yes

@wipfli
Copy link
Collaborator Author

wipfli commented Feb 24, 2025

I added some tests for the relations logic and the country coder logic.

@bdon bdon merged commit a974fe9 into protomaps:main Feb 24, 2025
5 checks passed
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