MongOSM is a set of Python utilities that manipulate OSM data in MongoDB:
insert_osm_data.py
reads an OSM file and writes it to a MongoDB database.map_server.py
uses Werkzeug to start a WSGI server that responds to the read-only OSM APIs and most of the XAPI-style predicate queries.apply-osmchange.py
is currently not tested, but it is supposed to read minutely change files from planet.osm.org and keep the MongoDB database up to date.
- Grab MongoDB 1.9+ (2.0 is best) from http://mongodb.org/.
- Unpack mongodb and run it.
- Install pymongo. (http://api.mongodb.org/python/current/installation.html)
- Grab some OSM XML data.
- Run
python insert_osm_data.py <OSM filename>
and wait. - Install Werkzeug.
- Run
python map_server.py
- Browse to http://localhost:5000/api/0.6/node/1 to verify a (probably empty) response.