Created
January 4, 2012 12:17
-
-
Save datablend/1559808 to your computer and use it in GitHub Desktop.
Read and analyze GPX file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment