Skip to main content

Generate route maps from various sources.

Project description

As basemap is no longer maintained and almost impossible to install, this project now uses Cartopy.

https://gitlab.com/vascowhite/routemap/badges/master/pipeline.svg

Generates a nice looking map of a route from various sources. Here is an example.

https://gitlab.com/vascowhite/routemap/raw/master/docs/example.png

Requires python >= 3.5

Requires proj, libgeos and tkinter to be installed. On Debian:

sudo apt install proj-bin libproj-dev libgeos-dev cython python3-tk

If running headless on a server, then python3-tk is not needed.

Use pip to install the following packages:

pip install numpy
pip install shapely --no-binary shapely
pip install matplotlib
pip install cartopy

Finally install routemap.:

pip3 install routemap

Usage

routemap [-h] [-t TITLE] [-o OUTPUT] [-c CURRENT] [-cl CURRENT_LABEL] [-d] [-st STARTTAG] [-et ENDTAG] [-q QUALITY] [--dpi DPI] [--paper PAPER] [--version]        file

positional arguments:

file Input file. rtx or bvs files accepted.
     Also accepts a url that returns a json formatted list of positions.
     e.g.
    {
        "positions": [
            "2019-09-17 00:00:01,41.37,2.187",
            "2019-09-17 01:00:02,41.37,2.187",
            "2019-09-17 02:00:02,41.37,2.187",
            "2019-09-17 03:00:01,41.37,2.187",
            "2019-09-17 04:00:02,41.37,2.187",
            "2019-09-17 05:00:02,41.37,2.187",
            "2019-09-17 06:00:01,41.37,2.187",
            "2019-09-17 07:00:02,41.37,2.187",
            "2019-09-17 08:00:02,41.37,2.187"
        ]
    }

optional arguments:

-h, --help            show this help message and exit
-t TITLE, --title TITLE
                     A custom title for the chart if the generated one is crap
-o OUTPUT, --output OUTPUT
                     Output file. Defaults to current directory
-c CURRENT, --current CURRENT
                    Indicate current position.
                    Pass the position with the option as a string representing the position or a url. eg:-
                    -c "52 23.5N 36 18.1W"
                    or
                    -c http://some.url.com/positions

-cl CURRENT_LABEL, --current_label CURRENT_LABEL
                    A label for the current position
 -d, --display      Display image in window. Defaults to no image displayed

 -st STARTTAG, --starttag STARTTAG
                    A custom tag for the first position

 -et ENDTAG, --endtag ENDTAG
                    A custom tag for the last position

 -q QUALITY, --quality QUALITY
                    The quality of the rendered map, defaults to 'i':-
                      c = crude,
                      l = low,
                      i = intermediate,
                      h = high,
                      f = full.
                    Be warned, anything higher than -i takes a long time to render

 --dpi DPI          The DPI of the saved map, defaults to 600 (pretty big)
 --paper PAPER
                    Size of paper saved map is intended to be printed on.
                    Accepts standard sizes such as a4, a3, letter etc.
                    Default is a3

 --version          Print the version and exit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

routemap-2.0.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

routemap-2.0.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file routemap-2.0.0.tar.gz.

File metadata

  • Download URL: routemap-2.0.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for routemap-2.0.0.tar.gz
Algorithm Hash digest
SHA256 9b22a357193542bdf7b4af36191f714a04ab1b52b33bc6af335d567d1a82ef51
MD5 4e95076daa679213de134520116df241
BLAKE2b-256 e8fedfb215dcd57c56cd26fb5234272b3d12ce8750c4599e2e1cbeb9560bdcfc

See more details on using hashes here.

File details

Details for the file routemap-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: routemap-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for routemap-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02a1e0a50c4e58ffb670fb8a0bd55899ac112738b7049bb6efe7d7ab9102474b
MD5 32b1958bfde0aaf5d143f350d73159e9
BLAKE2b-256 de891b5a02b25f4181bf10d3e57e3818e8939ce6d746c49f85383f601df341ba

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page