Skip to content

feat: trace route added#408

Open
a-y-a-n-das wants to merge 7 commits intovalhalla:masterfrom
a-y-a-n-das:feat-map-matching
Open

feat: trace route added#408
a-y-a-n-das wants to merge 7 commits intovalhalla:masterfrom
a-y-a-n-das:feat-map-matching

Conversation

@a-y-a-n-das
Copy link
Copy Markdown
Contributor

@a-y-a-n-das a-y-a-n-das commented Mar 28, 2026

feat: Implement /trace_route

🛠️ Fixes Issue

Closes #159

👨‍💻 Changes proposed

  • Added support for Trace Route with request options (e.g. costing, shape_match, trace_options).
  • Improved Trace Route input handling for polyline/GPX (including endpoint markers).
  • Added auto-zoom to the input polyline/GPX for a raw preview.
  • Reused/extended directions-style UI patterns for Trace Route results (route summary + maneuvers visibility toggle).

📄 Note to reviewers

AI:

  • generating tests
  • migrating the UI from direction tab to trace route tab (maneuvers, summary etc).
  • parsing GPX to coordinates.
  • creating trace route store from direction store.
  • adding markers to route.

📷 Screenshots

Preview
image

Traced Route
image

@github-actions
Copy link
Copy Markdown

Preview is ready! 🚀 You can view it here: https://valhalla-app-tests.gis-ops.com/408

@a-y-a-n-das
Copy link
Copy Markdown
Contributor Author

Please let me know if any changes are required or if there are concerns regarding performance or code quality.

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.

Implement /trace_route

1 participant