How to draw traffic line with colors on both directions in small two-way street like google traffic?

I am making an app with some function same to Google traffic map. But I have been stuck with below problem for weeks

I have used the “Snap to roads” method of google API to match GPS data from mobile device to road while tracking routes of users. But when I display speed data, I can not find any solution to draw 2 separated lines in 2 directions on small roads.

Does anyone know how any solution?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.