Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to render this output from open street map into geojson to add into a map. I only need to export the data one time. How do I do that? OSM lists it as a use case. I see a js library to do this (but I need a backend solution). It also seems like you can export it as geojson from the api somehow. How do most people usually do this?

share|improve this question
[out:json] gives overpass json not geojson. But there is an option in overpass turbo to export as geojson. – neogeomat Mar 12 '14 at 5:08
Please keep in mind that this isn't an appropriate way to add a OSM map, this only makes sense e.g. if you filter to highlight roadnetwork etc. Please refer – Mapper Mar 12 '14 at 8:52
You might want to think about marking some of the questions that you've got answers to as "answered". – BradHards Mar 13 '14 at 9:07
@BradHards just forgot! Thanks. – bernie2436 Mar 13 '14 at 11:09

2 Answers 2

up vote 4 down vote accepted

There are many ways

  1. overpass turbo has on option to export as geojson.
  2. JOSM also has option to export as geojson.
  3. OpenLayers can directly read OSM format to be displayed in map. (you can also use it to convert to geojson but the above methods are much easier.
share|improve this answer

Please see the page about converting map data between formats in the OSM wiki. It lists two converters, OSM2GEO and osmtogeojson. The second one seems to support more features and is the one used by overpass turbo.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.