{"library":"osm2geojson","title":"osm2geojson","description":"A Python library to convert OSM and Overpass JSON responses into valid GeoJSON. Version 0.3.2 is the latest stable release. The library is actively maintained, with recent bug fixes for polygon hole handling and blacklist/whitelist rules. Releases are sporadic.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install osm2geojson"],"cli":null},"imports":["import osm2geojson"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import osm2geojson\n\n# Example: convert an Overpass JSON response to GeoJSON\noverpass_json = {\n    \"elements\": [\n        {\n            \"type\": \"node\",\n            \"id\": 1,\n            \"lat\": 50.0,\n            \"lon\": 10.0,\n            \"tags\": {\"amenity\": \"cafe\"}\n        }\n    ]\n}\n\ngeojson = osm2geojson.json2geojson(overpass_json)\nprint(geojson)","lang":"python","description":"Converts an OSM JSON dict (e.g., from Overpass API) into a GeoJSON FeatureCollection.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}