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
Post a Comment