Skip to content

vearutop/gpxt

Repository files navigation

gpxt

Build Status Coverage Status GoDevDoc Time Tracker Code lines Comments

GPX Tool CLI.

Install

go install github.com/vearutop/gpxt@latest
$(go env GOPATH)/bin/gpxt --help

Or download binary from releases.

Linux AMD64

wget https://github.com/vearutop/gpxt/releases/latest/download/linux_amd64.tar.gz && tar xf linux_amd64.tar.gz && rm linux_amd64.tar.gz
./gpxt -version

Linux ARM64

wget https://github.com/vearutop/gpxt/releases/latest/download/linux_arm64.tar.gz && tar xf linux_arm64.tar.gz && rm linux_arm64.tar.gz
./gpxt -version

Macos Intel

wget https://github.com/vearutop/gpxt/releases/latest/download/darwin_amd64.tar.gz && tar xf darwin_amd64.tar.gz && rm darwin_amd64.tar.gz
codesign -s - ./gpxt
./gpxt -version

Macos Apple Silicon (M1, etc...)

wget https://github.com/vearutop/gpxt/releases/latest/download/darwin_arm64.tar.gz && tar xf darwin_arm64.tar.gz && rm darwin_arm64.tar.gz
codesign -s - ./gpxt
./gpxt -version

Usage

usage: gpxt [<flags>] <command> [<args> ...]


Flags:
  --[no-]help     Show context-sensitive help (also try --help-long and --help-man).
  --[no-]version  Show application version.

Commands:
help [<command>...]
    Show help.

move [<flags>] <file>
    When both new-start and new-end are present, the track would be stretched/shrinked to fit in new boundaries. Otherwise it would be moved to the touch new-start or
    new-end.

info <file>
    Show info about GPX file

show [<flags>] [<files>...]
    Show GPX file on the map in the browser

concat [<flags>] [<files>...]
    Concat multiple GPX tracks in one

cut [<flags>] <files>...
    Remove head and/or tail of a track

reduce [<flags>] <files>...
    Reduce number of points in track to simplify shape

route [<flags>] <file>
    Build optimal route through waypoints

runnerup list [<flags>] <db>
    List latest activities

runnerup export [<flags>] <db> <activity-id> [<output>]
    Export activity as GPX.