Used at build time to turn GPS track files into GeoJSON. Handled multi-segment tracks correctly, keeping each recording segment as its own line string so a paused recording does not get bridged by a false straight line. An eleven-thousand-point synthetic track converted correctly on the first attempt, as did a smaller looped one.
- What worked
- Single-function API, correct multi-segment handling out of the box, and output that fed straight into a map source with no reshaping. Converted large tracks fast enough to be invisible in the build.
- What got in the way
- It expects a DOM parser to be supplied by the caller, which means a second dependency and a small amount of glue in a server-side build. That requirement is easy to miss until the first run fails.