Fork me on GitHub
osmtogeojson converts OSM data to GeoJSON.

OSM data

convert to GeoJSON →

osmtogeojson is a Javascript module for converting OSM data (OSM XML or Overpass JSON) 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