https://github.com/fmstrat/gpx-time
Add times to gpx files based on distance between points.
https://github.com/fmstrat/gpx-time
Last synced: 11 months ago
JSON representation
Add times to gpx files based on distance between points.
- Host: GitHub
- URL: https://github.com/fmstrat/gpx-time
- Owner: Fmstrat
- Created: 2021-10-13T18:41:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-13T20:47:20.000Z (over 4 years ago)
- Last Synced: 2025-01-10T14:31:05.780Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gpx-time
Add times to gpx files based on distance between points.
## Build
``` bash
docker build -t gpx-time -f docker/Dockerfile .
```
## Run
``` bash
docker run --rm -ti -u $(id -u):$(id -g) -v /etc/localtime:/etc/localtime -v "$(pwd)":"$(pwd)" -w "$(pwd)" gpx-time
```
Example:
``` bash
docker run --rm -ti -u $(id -u):$(id -g) -v /etc/localtime:/etc/localtime -v "$(pwd)":"$(pwd)" -w "$(pwd)" gpx-time "Blueberry Mountain.gpx" Hiking "2021-05-30 09:30:00" "2021-05-30 14:30:00"
```
## Run in dev
``` bash
docker run --rm -ti -u $(id -u):$(id -g) -v /etc/localtime:/etc/localtime -v "$(pwd)":"$(pwd)" -w "$(pwd)" -v "$(pwd)/src/index.js":/app/index.js -v /app/node_modules gpx-time "Blueberry Mountain.gpx" Hiking "2021-05-30 09:30:00" "2021-05-30 14:30:00"
```