Extract a delimited path from an OSM map using the overpass-turbo API (GEOjson and other files)

Following

Here’s a short and quick tutorial about finding boundaries or any other path and then exporting data into an appropriate file extension for working on it.

As example a quarry in Dominican Republic

It’s a way in OSM with the ID 31858819. SO now we can use overpass-turbo, like this server overpass-turbo.eu with

[out:json][timeout:25];
(
 way(31858819)({{bbox}});
);
out body;
>;
out skel qt;

Link to the map: overpass turbo
File:
export(45).geojson (21.9 KB)

Need a relation like Rio del Norte?

For this relation ID is 390103 so then with overpass-turbo

[out:json][timeout:25];
(
 relation(390103)({{bbox}});
);
out body;
>;
out skel qt;

Link to the map: overpass turbo
File Geojson:
export(46).geojson (256.7 KB)

And so on and so forth, you can also reuse those files into a dedicated map like

And you do it with node & also multiple nodes:

[out:json][timeout:25];
(
  node(id:XXXXXX, YYYYYYY, ZZZZZ)({{bbox}});
);
out body;
>;
1 Like