<div dir="ltr">Hey all,<div><br></div><div>So recently I've been working on a site that centers around editing maps and treats GeoJSON as its latin[1]. As one of the features on this site, it uses a library to convert from other formats - KML, CSV, and GPX - to GeoJSON[2]. This has been pretty great, and clearly GeoJSON is a superset of CSV, and can handle most bits of KML. That said, though, GPX files present a bit of an issue.</div>
<div><br></div><div>That is, GPX allows you to specify values at points - a segment is made up of trackpoints, which can have their own data points - elevation, time, heart rate, and so on. The conversion library right now simply converts segments into lines and throws away data-at-points.</div>
<div><br></div><div>So, my question is: what's a better way? I don't want to encourage or imply that GeoJSON should grow, since its simplicity is incredibly valuable. But, in order to stem the fidelity loss in this conversion, is there a good pattern for storing this kind of data? What kind of data is this - what's the right term for values-on-lines and is it weird that GPX supports it while other geospatial formats don't?</div>
<div><br></div><div>Thanks for any knowledge or advice here, it's much appreciated!</div><div><br></div><div>Tom</div><div><br></div><div>[1]: <a href="http://geojson.io/">http://geojson.io/</a></div><div>[2]: <a href="https://github.com/tmcw/togeojson">https://github.com/tmcw/togeojson</a></div>
<div>[3]: <a href="http://en.wikipedia.org/wiki/GPS_eXchange_Format#Sample_GPX_document">http://en.wikipedia.org/wiki/GPS_eXchange_Format#Sample_GPX_document</a></div></div>