I am using jenetics jpx to read GPX files in java. That's works well. The gpx files are taken from my watch, from running sessions. I am reading the track points and would like to know if there is a way to determine, in the GPX file, when the watch was stopped for a break. Ex: if I run for 15minutes then stop the watch for 5 minutes, then start it again and run for 15minutes the parsing of the gpx file will give me 35 minutes. But I want to record 30 minutes.
Do you know if it is possible to detect this?
If you pause your run, your watch should create a new track-segment, like
The JPX library lets you access the track-segments via
Gpx -> getTracks -> getTrackSegments. In your example your watch should have created one track with two track-segments. The track-segments will contain the track-points before and after the stop.Update: TrackSegment collector
The following code lets you collect way-points into track-segments.