measure waypoints in 2d