Last active
August 3, 2020 06:39
-
-
Save andion/10b3a9e4641ae06167aa32a57f867a46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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