Good day to all.
I am currently developing an application on android studio, which calculates the distance traveled by the user from a start point to your current position, I read that the Google Maps API Distance Matrix allows me to calculate the distance between two known points (the first serious static and the second point would vary depending on the position of the user)
The question I have is: how to make the API google calculate the distance along the path I want, and not the most optimal route between two points, (the route to be taken by users will always be the same).
Please express your support is me
Greetings to everyone from Cucúta Colombia.