jvtm / python-quickroute

Python library for reading QuickRoute files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python QuickRoute

Library for reading QuickRoute data files in Python.

Contains also utility to convert the data to other formats (eg. to .gpx with heart rate info).

Command line utility

The command line utliity can dump data from existing QuickRoute JPEG file to following formats:

  • plain JSON (mainly for debugging purposes)
  • TODO GPX (including heart rate info)
  • TODO KML (for viewing in Google Earth etc)
  • TODO GeoJSON

Example #1 (my_qrt_file.jpg to out.json):

python -m quickroute.cli --format json my_qrt_file.jpg > out.json

File format

QuickRoute saves an additional APP0 section to JPEG file it creates. This section starts with QuickRoute string, followed by the actual binary contents.

Most of the file follows this format:

  • tag number (single byte)
  • data length (uint32)
  • data to decode (tag specific binary contents)

On some parts the parsing is recursive (data contents contain more data in the same format).

To be documented better, see the source...

Python representation

For now see the command line utility and its JSON output format.

To be documented and might get reformatted alot.

Links

About

Python library for reading QuickRoute files

License:Other


Languages

Language:Python 100.0%