mapbox / mapbox.js

Mapbox JavaScript API, a Leaflet Plugin
mapbox.com/mapbox.js/
Other
1.91k stars 386 forks source link

Display realtime traffic congestion on generated route just like google maps. #1332

Open imaginevinay opened 4 years ago

imaginevinay commented 4 years ago

Hi there,

I am using leaflet routing machine with inbuilt mapbox router. I have a use case where I need to show realtime traffic data on the generated route just like google maps (blue,orange,red - color coding) just like below :

image

but what we are getting with leaflet routing machine is this :

image

I have read the mapbox.js navigation api where I am getting the congestion on the generated route however I am still unable to plot the polyline using that data along with the traffic data color coding.

If there is any way i can get the route with traffic congestion color coding just like google maps using MAPBOX it would be helpful.

Thanks

yasmanycruz79 commented 2 years ago

I need this please