aspectumapp / osm2geojson

Convert OSM and Overpass XML/JSON to GeoJSON
MIT License
100 stars 14 forks source link

Non-Geo JSON? #36

Closed xeruf closed 1 year ago

xeruf commented 2 years ago

Any pointers on how to convert any of the common OSM formats into Overpass-like JSON in the CLI? https://wiki.openstreetmap.org/wiki/OSM_JSON

rapkin commented 2 years ago

In this library we have function parse_xml to convert OSM XML to OSM JSON (or Overpass JSON). It should be easy to implement small CLI tool to invoke that parse_xml method.