Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.33 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.33 KB

pybeautymaps

Travis Build Coveralls Coverage

This is a library for creating beautyful map images with python.

Example Image

Installation

pip install git+https://github.com/pfaion/pybeautymaps

Quick-Start

Take a look at the examples folder for different renderings.

from pybeautymaps import Beautymap

m = Beautymap.square_centered(
    center_latlon=(40.757667, -73.983715),
    width=8.0
)

m.render_square_png(
    filename='manhattan.png',
    size=2000,
    padding=50,
    line_widths={
        'trunk': 5,
        'primary': 4,
        'secondary': 3,
        'tertiary': 2,
    }
)

TODO

A brief list of what additional features are planned:

  • Add option to show rivers

  • Add option to use custom colors

  • Add more rendering shapes (rectangular, circular, ...)

  • Add more output formats (jpg, pdf, svg, ...)

  • Add debugging support via iPython

    • Return image as iPython image
    • Plot different road types in different colors
    • Cache data for every road type separately