mapbox / mapbox/mapbox-unity-sdk
Traffic Data Mismatch Between Mapbox Traffic Tiles and Directions API Annotations
@brnkhy is already working on this.
Since Jun 30, 2026.
- Dominant language
- C#
- Stars
- 784
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Description
We are currently using the Directions API with traffic annotations and rendering routes in our Unity application. We have observed a discrepancy between the traffic information displayed in the Mapbox traffic-enabled map style (e.g., `navigation-night-v1`) and the traffic data returned by the Directions API.
The traffic visualization shown on the map tiles contains significantly more congestion information (orange/red segments) than what is available in the API response. In the Directions API annotations, we are primarily receiving low and moderate congestion levels, a few heavy congestion segments, and a large number of segments marked as `unknown`.
As a result, when we plot traffic overlays based on the API response, the rendered traffic does not match the traffic visualization visible in the Mapbox tiles.
Could you clarify:
1. Why is there a difference between the traffic data displayed in the Mapbox traffic tiles and the traffic information returned by the Directions API?
2. Are the traffic tiles and Directions API using different traffic data sources or update frequencies?
3. Why are many route segments returned as `unknown` congestion in the API while traffic is visibly displayed on the map tiles?
4. Is there a way to access the same traffic data used by the Mapbox traffic tiles so that we can render traffic overlays that match the visualized traffic on the map?
5. Are there any configuration options, API parameters, or products that provide more detailed traffic congestion information than what is currently returned in the Directions API annotations?
Any guidance on how to achieve consistency between the traffic shown on the map and the traffic returned by the API would be greatly appreciated.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.