Skip to content

pfaion/pybeautymaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Beautiful images of street maps made with python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages