Good morning,

I'm trying to merge these three OverPass requests into one request... Goal: find bus platforms, bus shelters with bus stops that are not connected to paths

Is that possible? Thanking you in advance

Sorry, script n°1 is not unreadable, code is not format correctly

Script n°1

[out:json][timeout:25];
(
  node["highway"="platform"]["railway"!~".*"]({{bbox}});
  way["highway"="platform"]["railway"!~".*"]({{bbox}});
  node["public_transport"="platform"]["railway"!~".*"]({{bbox}});
  way["public_transport"="platform"]["railway"!~".*"]({{bbox}});
  node["amenity"="shelter"]["shelter_type"="public_transport"]["railway"!~".*"]({{bbox}});
  way["amenity"="shelter"]["shelter_type"="public_transport"]["railway"!~".*"]({{bbox}});
);
out body;
>;
out skel qt;

Script n°2

[bbox:{{bbox}}];
rel; > -> .r;
way; > -> .w;
(( node["highway"="bus_stop"]; - node.r; );  - node.w; );
out meta;

Script n°3

[bbox:{{bbox}}];
rel; > -> .r;
way; > -> .w;
(( node["public_transport"="stop_position"]["bus"="yes"]; - node.r; );  - node.w; );
out meta;

asked 03 Jun, 12:24

percherie's gravatar image

percherie
26124
accept rate: 0%

edited 03 Jun, 14:37

TZorn's gravatar image

TZorn
6.5k231124

In Overpass Turbo use the 'link' to provide routines directly.

https://overpass-turbo.eu/s/UER

(03 Jun, 13:32) DaveF

Thank you, DaveF,

What I miss is the recovery of the isolated nodes as in the following request. (generate share link is broken with my station)

How to merge everything?

[bbox:{{bbox}}];
way; > -> .w;
(( node["public_transport"="stop_position"]["bus"="yes"]; - node.w; );
out meta;
permanent link

answered 03 Jun, 16:41

percherie's gravatar image

percherie
26124
accept rate: 0%

edited 03 Jun, 16:42

[out:json][bbox:{{bbox}}];
way; > -> .w;
( node["highway"="bus_stop"]; - node.w; );
out meta;

(
  node["highway"="platform"]["railway"!~".*"]({{bbox}});
  way["highway"="platform"]["railway"!~".*"]({{bbox}});

  node["public_transport"="platform"]["railway"!~".*"]({{bbox}});
  way["public_transport"="platform"]["railway"!~".*"]({{bbox}});

  node["shelter_type"="public_transport"]["railway"!~".*"]({{bbox}});
  way["shelter_type"="public_transport"]["railway"!~".*"]({{bbox}});
);
out body;
>;
out skel qt;
permanent link

answered 08 Jun, 08:25

percherie's gravatar image

percherie
26124
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×387
×56
×8

question asked: 03 Jun, 12:24

question was seen: 206 times

last updated: 08 Jun, 11:04

powered by OSQA