Align "Analyzed roads" layer with analysis filter logic#10
Merged
svenklingel merged 2 commits intomainfrom Jan 22, 2026
Merged
Conversation
- Updated database/setup.sh to align relevant_roads filter logic with analysis.sql - Changed proxy/proxy.js to query relevant_roads instead of planet_osm_roads - Now only shows roads actually analyzed for tempo-30 suitability Co-authored-by: svenklingel <156933514+svenklingel@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix analyzed roads layer to reflect actual analysis logic
Align "Analyzed roads" layer with analysis filter logic
Jan 22, 2026
svenklingel
requested changes
Jan 22, 2026
Collaborator
svenklingel
left a comment
There was a problem hiding this comment.
Prüfe ob auch eine Anpassung der frontend/map.html oder einer anderen Datei nötig ist
Contributor
Author
Keine Änderung an |
svenklingel
approved these changes
Jan 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "Analyzed roads" layer was displaying data from
planet_osm_roads, which includes all OSM roads regardless of analysis status. It now queriesrelevant_roadswith filter logic matching the analysis CTE.Changes
database/setup.sh: Extendedrelevant_roadsfilter to matchanalysis.sqlCTE(p.tags->'maxspeed') ~ '^\d+$' AND (p.tags->'maxspeed')::integer <= 30DE:zone:20,DE:zone:10maxspeed = 'walk'proxy/proxy.js: Changed WFS layer fromplanet_osm_roads→relevant_roadsBefore:
After:
The blue layer now shows only roads actually eligible for Tempo-30 analysis, excluding roads already at ≤30 km/h.
Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.