Skip to content

A web application for viewing OpenStreetMap data on a map

Notifications You must be signed in to change notification settings

mshafer/osm-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSMViewer

Screenshot of OSMViewer

A web application for viewing OpenStreetMap data on a map. It was mainly just a chance to have a play around with:

Requirements

The app pulls data from a PostgreSQL + PostGIS database, housing OpenStreetMap data. You can find data sets for major cities at Mapzen, then load the data using osm2pgsql.

Edit app.config['DATABASE_URL'] in osmviewer.py before starting the app.

Get it running

$ git clone [email protected]:mshafer/osm-viewer.git
$ cd osm-viewer
$ pip install -r requirements.txt
# Create a virtualenv if you want
# Update osmviewer.py with the URL of your PostgreSQL instance
$ python osmviewer.py

The app will now be running at http://localhost:5000/

TODO

  • Currently the client asks the server for all features within the map's bounds, but this will overlap with regions that have already been fetched. Need to make sure we're only querying for new regions.
  • Add UI for selecting the type of features to display. Currently this is hardcoded in the server to only return one type of feature.

About

A web application for viewing OpenStreetMap data on a map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published