Skip to content

feat: map_matching_app_tool — raw GPS trace vs snapped route#193

Open
mattpodwysocki wants to merge 3 commits into
feat/search-app-toolsfrom
feat/map-matching-app-tool
Open

feat: map_matching_app_tool — raw GPS trace vs snapped route#193
mattpodwysocki wants to merge 3 commits into
feat/search-app-toolsfrom
feat/map-matching-app-tool

Conversation

@mattpodwysocki
Copy link
Copy Markdown
Contributor

Summary

Fifth tool in the MCP Apps pattern series. Calls Mapbox's Map Matching API to snap a noisy GPS trace to the road network, then renders both the raw trace (dashed orange line) and the matched route (solid blue line) on an interactive map so the user can see the matching at a glance.

What you see

  • Dashed orange line — your raw GPS trace
  • Solid blue line — what Mapbox snapped it to
  • Small legend in the bottom-left
  • Camera fits to the combined bounds of both lines
  • Summary chip shows distance, duration, and matching confidence

Stacked on #192

Targets `feat/search-app-tools`. After the upstream stack lands, this will retarget to main.

Test plan

  • 5 new tests: happy path, resourceUri, non-Ok API code, non-2xx response, resource HTML contains both layers + dasharray
  • Full suite: 759 tests passing across 65 files
  • Build, lint, format clean

🤖 Generated with Claude Code

Fifth in the MCP Apps series. Snaps a raw GPS trace to the road network
and renders both the raw trace (dashed orange) and the matched route
(solid blue) on an interactive Mapbox GL JS map. Includes a small
legend; the camera fits to the combined bounds of both traces.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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