I am looking for a solution that works with the overpass api.
for example:
When trying this approach I get an error that says
"Error: line 1: static error: For the attribute "output" of the element "osm-script" the only allowed values are "xml", "json", "csv", "custom", or "popup"."
Therefore GeoJSON is not supported this way.
I tried several approaches in ipython (python 2.7) to transform json into geojson, but failed so far.
What I need is a way to get OSM as geojson in ipython via using a url (e.g. overpass api).
BR
KeyError Traceback (most recent call last) <ipython-input-152-f46acadcf165> in <module>() ----> 1 v = convert_json(data) <ipython-input-151-b6174edc078d> in convert_json(items) 10 if key not in ('lat', 'lon') } 11 } ---> 12 for feature in json.loads(items) 13 ] 14 }) KeyError: 'lon'– Apachai Dec 07 '16 at 20:57