public
Created

Read and analyze GPX file

  • Download Gist
ImportData.java
Java
1 2 3 4 5 6
// Start by reading the file and analyzing it contents
Gpx gpx = GPSDings.readGPX(new FileInputStream(file));
TrackAnalyzer analyzer = new TrackAnalyzer();
analyzer.addAllTracks(gpx);
// The garmin GPX running data contains only one track containing one segment
Trkseg track = gpx.getTrk(0).getTrkseg(0);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.