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

Query-to-Map: All paths with Hiking Route relationship

0

I am looking to form a Query-to-Map statement that will show all the Paths within a specified Bounding Box that have a given Hiking Route relationship (= "Lake Hopatcong Trail"). Would someone suggest the appropriate syntax?

If there is an alternate approach, I am "all ears".

--Thanks

asked 20 Jan '22, 15:44

Rob009's gravatar image

Rob009
565511
accept rate: 0%

edited 21 Jan '22, 15:07


One Answer:

2

A Reddit user suggested using "Overpass turbo" for this query. Here is a link to the query: https://overpass-turbo.eu/s/1fhW

/*
This query looks for nodes, ways and relations 
with the given key/value combination.
Choose your region and hit the Run button above!
*/
[out:json][timeout:25];
// gather results
(
  // query part
  relation["name"="Lake Hopatcong Trail"]({{bbox}});
);
// print results
out body;
>;
out skel qt;

answered 21 Jan '22, 15:06

Rob009's gravatar image

Rob009
565511
accept rate: 0%

Source code available on GitHub .