https://github.com/rileyjshaw/csv-to-gpx
https://github.com/rileyjshaw/csv-to-gpx
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rileyjshaw/csv-to-gpx
- Owner: rileyjshaw
- Created: 2021-05-21T22:16:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-25T11:10:24.000Z (over 4 years ago)
- Last Synced: 2025-02-01T07:22:42.196Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSV to GPX
_For Barry._
Takes a CSV in the format:
```
D,and outputs a Garmin-flavored .gpx file.
## The simplest way to use it:
```sh
git clone git@github.com:rileyjshaw/csv-to-gpx.git
cd csv-to-gpx
npm i
# Drag your CSVs into the directory, then…
# For a single CSV file:
node ./convert.js .csv .gpx
# For every CSV file in the directory:
for csv in *.csv; do node ./convert.js "$csv" "${csv%.csv}.gpx"; done
```I included [example.csv](example.csv) if you want to test it right away:
```sh
# …after all the setup steps, run:
node ./convert.js example.csv output.gpx
```