Skip to content

Instantly share code, notes, and snippets.

@vool
Last active March 31, 2019 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vool/fe1f618afdcc6cc59900 to your computer and use it in GitHub Desktop.
Save vool/fe1f618afdcc6cc59900 to your computer and use it in GitHub Desktop.
Random Overpass Turbo Queries.For extracting OSM data.
/*
Overpass query to get all the counties in Ireland.
http://overpass-turbo.eu/s/9N3
Note:
County relations are taged as:
"boundary"="administrative" in the Republic
and
"boundary"="historic" in Northern Ireland
*/
[out:json][timeout:900];
(
area["name"="Republic of Ireland"];
area["name"="Northern Ireland"];
);
relation(area)
["boundary"~"administrative|historic"]
["admin_level"="6"];
(._;>;);
out;
/*
All nodes in Ireland (Island) with lis|lios|rath|cashel in their name
https://overpass-turbo.eu/s/HwU
*/
[out:json];
// fetch areas to search in
{{geocodeArea:Ireland}}->.ie;
{{geocodeArea:Northern Ireland}}->.ni;
(
node["name"~"lis|lios|rath|cashel",i](area.ie);
node["name"~"lis|lios|rath|cashel",i](area.ni);
// or to just select towns & villages
//node["place"~"village|town|city"]["name"~"bally|lis|lios|rath|cashel",i](area.ie);
);
out body;
>;
out skel qt;
/*
All townlands in Ireland (Island) with lis|lios|rath|cashel in the name
*/
[out:json];
// fetch areas to search in
{{geocodeArea:Ireland}}->.ie;
{{geocodeArea:Northern Ireland}}->.ni;
(
relation["locality"="townland"]["name"~"lis|lios|rath|cashel",i](area.ie);
relation["locality"="townland"]["name"~"lis|lios|rath|cashel",i](area.ni);
);
out body;
>;
out skel qt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment