Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Read and analyze GPX file
// Start by reading the file and analyzing it contents
Gpx gpx = GPSDings.readGPX(new FileInputStream(file));
TrackAnalyzer analyzer = new TrackAnalyzer();
// The garmin GPX running data contains only one track containing one segment
Trkseg track = gpx.getTrk(0).getTrkseg(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment