Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kergteed #13

Open
tormi opened this issue Feb 1, 2017 · 1 comment
Open

Kergteed #13

tormi opened this issue Feb 1, 2017 · 1 comment

Comments

@tormi
Copy link
Member

tormi commented Feb 1, 2017

Kergteede andmekiht GeoJSON'is, olemasolev/kavandatud/ettepanekud

http://overpass-turbo.eu/

[out:json];
area
  ["EHAK:parishcode"="0727"]->.a;          // Redirect result to ".a"
out body qt;
(
  relation
    (area.a)                    // Use result from ".a"
    ["route"~"bicycle|foot"];
  way
    (area.a)                    // Use again result from ".a"
    ["highway"~"cycleway|footway|pedestrian"];
);
out body qt;
>;
out skel qt;

Muu

[out:json][timeout:100];

//find ways which are members of relation or have highway=cycleway
//and write them as a
(
  relation[route=bicycle]({{bbox}});
  way(r);
  way[highway=cycleway]({{bbox}});
)->.a;

(
  //take ways from a and filter them by surface=paved
  way.a[surface=paved];
  //union with ways from a with surface=asphalt
  way.a[surface=asphalt];

  //you could add more surface variants here
  //by adding way.a[surface=value];

  // get nodes for ways
  >;
);

out meta;
tormi added a commit that referenced this issue Feb 1, 2017
@tormi
Copy link
Member Author

tormi commented May 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant