display waypoints on the map, calculate the distance between the current point and the next waypoint