Is there a way to use own custom data for traffic?

2 posts / 0 new
Last post
Mukeysh
Is there a way to use own custom data for traffic?

I just want to know is there any way where we can use our own custom data for displaying traffic on map like normal, high medium traffic.


MQBrianCoakley
You could use your own
You could use your own traffic data to create approriately colored, or otherwise indicated, L.polyline. I've done that with the elevation api and color coded segments according to grade. That was a long long time ago in a sdk now sunset but it's possible. It may create lots of objects and data on the map so you may want to limit the zoom levels all those polylines are displayed at or limit the number of separate sections indicated.