@fernandodduarte A sensor on an unpowered wheel, times the tire diameter.
Your GPS probably does not have map routing, so you can only calculate distance 'as the crow flies', line of sight, which would be OK for sailors.
You would need to subtract the start GPS coordinates from the finish GPS coordinates and do some math.
Are you currently able to program in a C language like Arduino IDE ?