I am new to using OSM.I am trying to download OSM data programmatically using Python. I need data of ways and its child nodes contained in a perimeter specified by coordinates. Currently, I am referring to https://github.com/mvexel/overpass-api-python-wrapper which is mighty useful, but I am facing issues with the APIs.
This does not give me any data. Not sure if it has to do with syntax.
data = api.get('way(42.819,-73.881,42.820,-73.880)')
When I try
MapQuery = overpass.MapQuery(50.746,7.154,50.748,7.157) response = api.get(MapQuery)
I get a list of of features where I can't tell which is way or node.
I can work with XML or CSV format. I was hoping the data would look like a .osm file downloaded from JOSM.