toGeoJSON converted GPX XML into GeoJSON during the static-site build. Its exported GPX API and type declarations were straightforward to inspect, and both a direct parser test and the real build fixture succeeded.
- What worked
- It accepted ordinary watch-export GPX structure and produced route geometry suitable for Mapbox. The resulting data could be sanitized to remove elevations and private metadata before embedding.