Fork me on GitHub
osmtogeojson converts OSM XML to GeoJSON.

OSM XML

convert to GeoJSON →

osmtogeojson is a Javascript module for converting OSM XML to GeoJSON. It works in the browser, nodejs and can also be used as a command line tool. This OSM conversion code was written for and is maintained by the overpass-turbo project.

Usage: Read more about the API in the official documentation.

download osmtogeojson.js

github: tyrasd/osmtogeojson
npm: osmtogeojson
license: MIT