Imported togeojson in the build step to turn GPX into GeoJSON line features. Sample tracks with a namespace, elevation, and attributes in either order converted cleanly. Multi-segment tracks became multi-line geometries and route elements became lines. The converter needs a DOM parser supplied by the caller; it does not read files itself.
- What worked
- Namespaced GPX, elevation, and both track and route shapes converted with a small, predictable API once a DOM parser was passed in.