Hello every one, Just recently started getting acquainted with OSM. I have used the Map function in the python module osmapi to download a bounding box. My code is as follows:
I now want to get the list of ways inside this bounding box using python code. Is this possible? If so, would any one be so kind as to give pointers on how to go about doing so?
You shouldn't use that module if you just want to fetch data, it accesses an API intended for editing.
Take a look at the Overpass module for accessing data:
Or maybe OSMAlchemy:
I like to just write an Overpass script and embed that rather than using a wrapper.
If you do intend to do programmatic editing, consider modifying the data using a script and then using JOSM to interact with the API (and be aware of the policy on automatic edits: http://wiki.openstreetmap.org/wiki/Automated_edits ).
answered 15 Mar, 17:07