How to check if my current location is on the route that I draw before, and if not, redraw route.
So how I think: we have something like this:
ArrayList<LatLng> listGeopoints = new ArrayList<LatLng>()
(in response from
String url = "http://maps.googleapis.com/maps/api/directions/xml?"
+ "origin=" + start.latitude + "," + start.longitude
+ "&destination=" + end.latitude + "," + end.longitude
+ "&sensor=false&units=metric&mode=driving";
)
and i have to make function something like this
for(LatLng point : listGeopoint){
if (checkIfPointNearly(currentPoint, point)) return true;
else return false
}