An open API service indexing awesome lists of open source software.

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.

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"
```