NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi there, I'm trying to export only the cycle map for the city of São Paulo (top lat: -23.3984, bottom lat: -23.7552, left lng: -46.9027, right lng: -46.2888) using the openStreetMap API in http://www.openstreetmap.org/export in JSON format but as I click the export button the API downloads only an empty html file (0 bytes) called "map.osm.html". I already tried waiting and in many different days. It's been more than 2 weeks that I'm trying everyday and the only output is this 0 bytes file. I also tryied using the Overpass API, and it works, but the output is a HUGE XML file which I can't use because of the size. Tried also reading the overpass api docs to change the output to JSON with no success.

Can someone help me with this?

Thanks in advance, Giovanni.

asked 31 May '16, 18:52

gask's gravatar image

gask
11112
accept rate: 0%

edited 31 May '16, 21:19

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

I guess you could be better helped if you would mention in more detail what you want to do with the exported data.

(31 May '16, 19:48) aseerel4c26 ♦

At /export there is no OpenCycleMap export. You only get raw OSM data in XML there. You likely do not get data because the area of the city contains too much data (the city is dense!) and our resources are limited ... it is the big pile of data which you get via Overpass.

(31 May '16, 19:48) aseerel4c26 ♦

I want to map the cycling paths of the city in a cycling app. So I need the geo coordinates for every cycling path in the city in JSON format, which a co-worker said he got it from there. I filtered the api with "cycle map" under the "Layers" button, set the map to focus São Paulo (the bounding box I sent you in the question" and clicked the "Export" button. If it's not possible through this button, can you help me how will I get the expected output? :)

(31 May '16, 20:53) gask

the Layers button only affects/switches the map view (the images you see). All those different maps (and much more which are not listed in the layers menu) are based on the same OSM data set. A part of that data set (which you can get for example as XML) are the cycle routes and cycle paths.

You may want to learn a bit about how some cycling paths and routes are represented in our database. See e.g. https://wiki.openstreetmap.org/wiki/Bicycle and https://wiki.openstreetmap.org/wiki/Cycle_routes . I am not sure which type you are looking for. Just cycleable ways, specific cycle ways, cycle routes (usually many kilometres long), ...? All of that potentially exists in the OSM data.

If you only want the cycle routes the data can be filtered and also transformed to other formats and interpretations. I guess it is possible via Overpass API. See e.g. the question overpass-turbo-cycle-route-with-barriers. You can export as geoJSON in Overpass Turbo (which is a front end for Overpass API). Likely someone else here can provide a better answer based on the information we now have, just wait a bit. Or maybe that's already enough for you (and you can describe how it worked afterwards)?

permanent link

answered 31 May '16, 21:15

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 31 May '16, 21:25

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×315
×293
×62
×28

question asked: 31 May '16, 18:52

question was seen: 4,844 times

last updated: 31 May '16, 21:25

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum