MongOSM is a set of Python utilities that manipulate OSM data in MongoDB:
insert_osm_data.pyreads an OSM file and writes it to a MongoDB database.
map_server.pyuses Werkzeug to start a WSGI server that responds to the read-only OSM APIs and most of the XAPI-style predicate queries.
apply-osmchange.pyis 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.
python insert_osm_data.py <OSM filename>and wait.
- Install Werkzeug.
- Browse to http://localhost:5000/api/0.6/node/1 to verify a (probably empty) response.