I am using Google Places API and direction API to mark the route between 2 places. I get a polyline for this route. Now I have another polyline which lies on this route.
Eg: Point A to point B -> initial polyline Point C to point D -> second polyline which lies on the A->B polyline.
Using isLocationOnEdge() method, I was able to find out if the C->D polyline lies on the A->B polyline or not.
Problem is I want to find out if the path C->D is in the direction of A->B or reverse. Is there any way to do this?