Skip to content

Instantly share code, notes, and snippets.

@andion
Last active August 3, 2020 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andion/10b3a9e4641ae06167aa32a57f867a46 to your computer and use it in GitHub Desktop.
Save andion/10b3a9e4641ae06167aa32a57f867a46 to your computer and use it in GitHub Desktop.
import Gpx from "gpx-parser-builder";
// gpxTrack: our gpx file with the xml representing our exported track
const getTrackPoints = gpxTrack => {
const parsedGpx = Gpx.parse(gpxTrack);
return parsedGpx.trk[0].trkseg[0].trkpt;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment