android - How to draw two-direction traffic map in small two-way street like google traffic? -


i making app function same google traffic map. have been stuck below problem weeks

i have used "snap roads" method of google api match gps data mobile device road while tracking routes of users. when display speed data, can not find solution draw 2 separated lines in 2 directions on small roads.

does know how solution? please give me clue!

google traffics bi-directional vector layers. roads api not return such data structure centered road vertices. 1 way fake 2 way lines create copy of snapped geometry , shift longitude 0.0001 - 0.001 every single point in line path. , apply styles.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -