This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Error in exporting roads

0

Hello all,

I want to extract all types of roads of an area. But whenever I am trying to export them, it shows the following error:

This site can’t be reached

The web page at http://api.openstreetmap.org/api/0.6/map?bbox=77.2312,28.5188,77.3184,28.5645 might be temporarily down or it may have moved permanently to a new web address. ERR_INVALID_RESPONSE

Could anyone please tell me why it is showing this error? Is it server problem or I need to go to some new website of OSM. Any help would be much appreciated.

Thanks & Regards Akanksha

asked 29 Nov '16, 09:22

AkankshaBalha's gravatar image

AkankshaBalha
11112
accept rate: 0%


One Answer:

2

Please do not use the editing API for such downloads, as the name says it is mainly intended for editing.

To export a subset of OSM data for a area you should either use an extract of the area in question and filter to obtain (please have a look at the wiki for descriptions of the many tools available) the data that you want or, if the area in question is not too large, use the Overpass API.

answered 29 Nov '16, 09:28

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 29 Nov '16, 09:37

Source code available on GitHub .