Closed imaginevinay closed 4 years ago
Hi, sorry but this is outside the scope of LRM. You would need to find a data source for congestion data and a way to query that information for the LRM route, and finally customize the line to display on the map.
Hi there,
Leaflet routing machine is awesome but there is a use case wherein I need to display congestion on the generated route (low/moderate/high) only just like google maps.
I am using mapbox router along with LRM. It would be very helpful if anyone can help me if out or if this is possible with LRM or any other library which can help me for this use case.
What we want is to show colours on route depending on congestion (traffic) :
Note : I do not want to use google maps api due to high cost so please suggest a way out for this