Trainrec#
Tue, 31 Oct 2006 15:34:21 +0000
Trainrec is my work-in-progress Javascript/SVG/GoogleMaps hack to get interesting stuff out of my GPS/HR traces.
Current state
- Loads a data file (in gpsbabel garmin301 format)
- Displays graph of speed and HR against time
- Draws the route onto a Google Maps overlay
- The time graph has functional zoom in/out and functional (not pretty) pan left/right
Plans
- chop input file into ranges (e.g. laps) using selectable criteria (time gaps in trace, speed < threshold, time since last lap, distance since last lap, speed > threshold, location within x metres of {some point}, etc)
- better polyline simplification
- simple stats (mean, s.d., yadda yadda)
- histograms: {hr, speed, etc} vs time at that level
- other graphs as we think of them
- GPX import/export (would be more use if GPX had support for cadence data, thobut)
- for privileged users (me, currently), keep the data on the server so that permalinks for published graphs are possible
- some way of saving state between visits (when we have some more state)
- ...
- Profit (this bit's a joke. probably)
Known bugs
- Requires Firefox - very unlikely that it works in IE at all (I'll fix it when I have nothing better to do than swear at the MS Script Debugger thing)
- Only ever tested on Linux - may even not work in Windows (though I've fixed the most likely cause of trouble there)
- "Pan right" button is inexplicably flakey (looks almost like it only sees clicks on the white bit not the blue bits, though the "Pan left" button has no such restriction that I can see.
- generally rather vanilla visuals. I'm a programmer, Jim, not a graphic designer.
Try it!
- go to http://maps.coruskate.net/trainrec/
- download the sample data file (or use your own, if you have the GPS-fu)
- upload it again
- try the zoom and pan
- drag the markers around and watch the route map update
Impressive, isn't it? No, I agree, not very.
Feedback, if you feel the urge, to dan
at coruskate.net
. Any email saying "sporttracks does all this and more" will not be responded to: I don't use Windows, and I don't want to use Windows.
:article