These options rely on Android's physical activity recognition feature. It may not be accurate and can be laggy, use only if you are okay with that. Will work best when a speed sensor is used for distance and duration.
Turn off location automatically while being still, and back on when movement starts. This reduces battery usage on longer breaks, without the need to stop the tracking.