Compute a traffic-aware driving route with the Mapbox Directions API driving-traffic profile

domain: docs.mapbox.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. GET the directions/v5/mapbox/driving-traffic endpoint with semicolon-separated lon,lat coordinates (up to 25 points)
  2. Request annotations=duration,distance,congestion for per-segment traffic detail
  3. Compare routes[].duration (live/traffic-adjusted) against routes[].duration_typical (historical baseline)
  4. Stay under the documented rate limit of 300 requests/minute per access token
  5. Use the driving profile instead if the area has no traffic coverage, since driving-traffic silently falls back to driving results there

Known gotchas

Related routes

Implement EV routing and range visualization using Mapbox or HERE Routing APIs
docs.mapbox.com · 5 steps · unrated
Implement turn-by-turn navigation with live traffic and EV range overlay using the TomTom Routing API
developer.tomtom.com · 6 steps · unrated
Compute a travel time/distance matrix with the Google Maps Routes API
developers.google.com · 4 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans