Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perliedman/gps-track-import
Simple import of tracks for GPS
https://github.com/perliedman/gps-track-import
Last synced: about 1 month ago
JSON representation
Simple import of tracks for GPS
- Host: GitHub
- URL: https://github.com/perliedman/gps-track-import
- Owner: perliedman
- License: isc
- Created: 2013-09-09T10:10:34.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-11-15T09:32:10.000Z (almost 8 years ago)
- Last Synced: 2024-04-14T22:14:23.429Z (7 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
GPS Track Import
================Very basic script to import tracks from a GPS unit using [GPSBabel](http://www.gpsbabel.org/) and store them locally in an easily manageable format: one GPX file per tracks, plus metadata in JSON format.
Requirements
------------* Python 2.7
* [gpxpy](https://github.com/tkrajina/gpxpy)
* [python-nominatim](https://github.com/rdeguzman/python-nominatim)Usage
-----```
import_tracks.py [-h] [--from-device FROM_DEVICE] [--overwrite]
[files [files ...]]
```This assumes you have GPSBabel installed and on your path.
Unless ```--from-device``` is used, tracks will be imported from ```usb:```.
Optionally, one or more GPX files can be supplied, from which tracks will be imported instead; ```--from-device``` will be ignored in this case.
Unless ```--overwrite``` is specified, the script will not overwrite any data that already exists (to avoid overwriting any manual changes done after an import).
Storage format
--------------The script stores the imported tracks in your home directory under a directory called ```.gps-log/tracks```.
Two files are stored per track: a GPX file with the track's positions, and a JSON file containing metadata/summary information about the track.
A file called ```index.json``` is also produced, containing a summary of all tracks currently stored in the directory.