Skip to content

Fix road graph build crash when route tag is absent#1

Open
billatq wants to merge 1 commit into
ciospettw:masterfrom
billatq:fix/road-route-tag-crash
Open

Fix road graph build crash when route tag is absent#1
billatq wants to merge 1 commit into
ciospettw:masterfrom
billatq:fix/road-route-tag-crash

Conversation

@billatq

@billatq billatq commented Apr 29, 2026

Copy link
Copy Markdown

Summary

  • move route_tag lookup to the top of _WayGraphBuilder.way() so it is available in both road and rail flows
  • fix the UnboundLocalError raised while building the road graph from OSM ways without a route tag
  • verify the file still parses with ./.venv/bin/python -m py_compile main.py

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.

1 participant