GPS Analysis Code
                
                Brought to you by:
                
                    fmtaylor92
                    
                
            
            
        
        
        
    | File | Date | Author | Commit | 
|---|---|---|---|
| src | 2015-02-28 |  Frank Taylor | [d50f69] removed System.out.print from TrackSegment | 
| target | 2015-02-28 |  Frank Taylor | [d50f69] removed System.out.print from TrackSegment | 
| README.txt | 2014-12-06 |  Frank Taylor | [f13cb3] comments | 
| gps.gpx | 2013-12-03 |  Frank Taylor | [65d039] kml files | 
| gps.kml | 2013-12-03 |  Frank Taylor | [65d039] kml files | 
| pom.xml | 2014-12-06 |  Frank Taylor | [8c3028] Tracks, Segments, Points hierarchy | 
To get code from sourceforge:
git clone git://git.code.sf.net/p/gpsanalysis/code gpsanalysis-code
also see: https://github.com/Danny02/WanderrouteJS/blob/master/gpsanalysis-code
#git pull
#git push
To build jar file:
mvn clean compile package
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")));
//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();
//Returns all points as populated objects for your own analysis
final List<TrackPoint> allPoints= trip.getPoints();
try it online at: http://gps-site.fmtmac.cloudbees.net
or on Android at: http://dl.dropboxusercontent.com/u/688127/public-web-site/gpsdiary/gpsdiary.htm