GPS Analysis Wiki
Brought to you by:
fmtaylor92
Welcome to your wiki!
This is the default page, edit it as you see fit. To add a page simply reference it within brackets, e.g.: [SamplePage].
The wiki uses Markdown syntax.
Analyse GPX or KML data
Java code example (assuming GPS-library.jar in classpath):
//gets points from a GPX or KML file
final List<trackpoint> points= GpxFileDataAccess.getPoints(new File("/path/toGpxFile.gpx"));
//or
final List<trackpoint> points= GpxFileDataAccess.getPoints(new FileInputStream(new File("/path/toGpxFile.gpx")));</trackpoint></trackpoint>
Creates and does some analysis on GPX or KML file
final Trip trip= Trip.makeTrip(-1, new TrackSegment(points, TrackSegment.caminarType.undef));
//Returns tracks, segments and points after analysis
final List<track> allTracks= trip.getTracks();
final List<track> tracks= GpxFileDataAccess.getTracks(TEST_GPX_FILE);
final List<tracksegment> allSegments= trip.getFirstTrack().getSegments();
final List<trackpoint> allPoints= trip.getPoints();
final List<trackpoint> segmentsPoints= tracks.getFirstSegment().getPoints();</trackpoint></trackpoint></tracksegment>
//Returns all points as populated objects for your own analysis
final List<trackpoint> allPoints= trip.getPoints();</trackpoint>
try it online at: https://gps-site.herokuapp.com
or on Android at: http://dl.dropboxusercontent.com/u/688127/public-web-site/gpsdiary/gpsdiary.htm
Last edit: Frank Taylor 2015-03-04