I have researched a lot on google maps android to dynamically plot the route as the person travels. I found that polyline gives a closed polygon with multiple points on it, which does not look good. So what is the best method to plot the exact route as traveled by a person as per the latitude and longitude.
            Asked
            
        
        
            Active
            
        
            Viewed 299 times
        
    0
            
            
        - 
                    Hi you should draw polyline line as person move – Saveen Sep 06 '15 at 02:42
 - 
                    Hello Saveen, polyline would draw a polygon right. So if I travel from A->B-> C. It would give me a triangle with vertices A, B, C. What I am looking for is the path A->B->C. Not a closed loop. – Bhaskar Gurram Sep 06 '15 at 02:47
 
1 Answers
0
            
            
        You will have to use the Google Maps Directions API to build your route map. https://developers.google.com/maps/documentation/directions/intro. Also refer to the detailed SO answer which may help you understand its implementation. Answer : Draw path between two points using Google Maps Android API v2.
        Community
        
- 1
 - 1
 
        Sameer Khan
        
- 637
 - 6
 - 15