/simpleOSM

Primary LanguagePythonMIT LicenseMIT

simpleOSM

simpleOSM is a tool that downloads and renders a map from OpenStreetMaps. It can accept either a bounding box of latitudes and longitudes, or a plain-english search query.

Usage

Search

To render a map of an area without coordinates, like a city, landmark, or college campus, use the "search" function:

python osm_render_tool.py search "Pittsburgh"

Pittsburgh

python osm_render_tool.py search "Times Square"

Times Square

python osm_render_tool.py search "Harvard"

Harvard

The search funtion can handle most well known places and landmarks and can deal with misspellings.

Coordinate Render

To render a map constrained by maximum and minimum latitudes and longitudes, use the "coords" function:

python osm_render_tool.py coords "40.440322, 40.446322, -79.948583, -79.938583"

CMU

Technical Requirements

  • mapnik
  • PIL