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

Downloading Boundaries from Overpass API with JOSM not possible anymore?

0

Hi, in the past I was able to download only the administrative boundary relations/ways of a country/large area by using JOSM and add this Overpass request:

[timeout:180];
(
way["boundary"="administrative"];
node(w);
rel(bn)->.x;
way(bn);
rel(bw);
);
out meta;

but now it seems the server is always failing contacting the server and it ends up failing. Can anybody help me?

asked 23 Dec '16, 10:12

capiscuas's gravatar image

capiscuas
11112
accept rate: 0%

edited 24 Dec '16, 11:19

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701


One Answer:

1

Your code doesn't work for me either, but... For Denmark (the country north of Germany) the solution is now as simple as entering "boundary=administrative & type:relation in Danmark" in the first field in JOSM's "Download from Overpass API" view, click the "create query" button and then finally the "Download" button.

answered 25 Dec '16, 02:03

Hjart's gravatar image

Hjart
3.0k42656
accept rate: 18%

edited 26 Dec '16, 11:11

Source code available on GitHub .