NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 '20, 12:24

percherie's gravatar image

percherie
26224
accept rate: 0%

edited 03 Jun '20, 14:37

TZorn's gravatar image

TZorn
12.3k764225

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

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

(03 Jun '20, 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 '20, 16:41

percherie's gravatar image

percherie
26224
accept rate: 0%

edited 03 Jun '20, 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 '20, 08:25

percherie's gravatar image

percherie
26224
accept rate: 0%

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:

×483
×62
×9

question asked: 03 Jun '20, 12:24

question was seen: 1,590 times

last updated: 08 Jun '20, 11:04

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum