Yes, you can,
You need to either:
- memorize all points and then calculate the distance between the points and add the distances.
- memorize the previous point, calculate the distance to the current point and add it to the total.
In the GPS library you have the DistanceTo method for the Loccation object.
Distance = Location1.DistanceTo(Location2)
That's what I told you.
You need to memorize, or treat all the points between the start and end point given by the GPS when you are moving!
If you expect giving a start point and an end point and GPS returns you the distance of the blue line from your image this is IMPOSSIBLE with GPS.
Where do the points of your blue line come from ?
If you have only the start point and the end point the solution is given by jsanchezc in post #2 !