this a direction between two points (A) and (B) if i have new point (C) how can i check if point (C) falls on the direction between (A) and (B)

this a direction between two points (A) and (B) if i have new point (C) how can i check if point (C) falls on the direction between (A) and (B)

You may use the Geometry library in the Google Maps API to determine if a point lies on or near a line. See example here:
https://developers.google.com/maps/documentation/javascript/geometry#isLocationOnEdge
For Android:
https://github.com/googlemaps/android-maps-utils
The isLocationOnEdge function is implemented here: