OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

Announcement

A fix has been applied to the login system for the forums - if you have trouble logging in please contact support@openstreetmap.org with both your forum username and your OpenStreetMap username so we can make sure your accounts are properly linked.

#126 2017-11-14 12:06:39

Cd_spb
Member
From: Санкт-Петербург
Registered: 2011-11-04
Posts: 1,188

Re: Overpass API - примеры запросов

Спасибо.
Upd. Как выяснилось, моя задача через overpass не решается.

Last edited by Cd_spb (2017-11-14 18:58:55)

Offline

#127 2018-02-11 13:49:26

freeExec
Moderator
From: Ульяновск,Модератор всех слоёв
Registered: 2012-07-31
Posts: 7,138

Re: Overpass API - примеры запросов

Вычисление к каким станция привязан выход.
https://overpass-turbo.eu/s/w5N

[out:xml][timeout:25][bbox:{{bbox}}];

( node({{bbox}})[railway=subway_entrance]; );
foreach(
  rel(bn)->.r;
  out skel;
  convert node 
  			::id = id(),
  			ref = t[ref],
  			colour = t[colour],
  			label = "Выход № " + t[ref] + " со станции: " + r.set(t[name]);
  out;
);
{{style:
node {
  text: label;
}
}}

Offline

Board footer

Powered by FluxBB