简体   繁体   English

如何在立交桥涡轮中编写具有两个要求的查询?

[英]How to write a query with two requirements in overpass turbo?

I am trying to retrieve a bus route for specific bus services.我正在尝试检索特定巴士服务的巴士路线。 How do I include two key in overpass query such that I could find the bus routes of specific bus services?如何在天桥查询中包含两个键,以便我可以找到特定巴士服务的巴士路线? For example, I would like to find the bus routes of bus Svc 3 ?例如,我想查找巴士 Svc 3 的巴士路线?

How do I include two features:我如何包含两个功能:

"route" = "bus" “路线”=“巴士”

"name" = "Svc 3" “名称”=“Svc 3”

QUERY询问

node["route"="bus",](around:{{radius}},{{geocodeCoords:'country'}});
way["route"="bus"](around:{{radius}},{{geocodeCoords:'country'}});
relation["route"="bus"](around:{{radius}},{{geocodeCoords:'country'}});

See the documentation of the query statement .请参阅查询语句文档 To specify multiple filters just add them one after the other:要指定多个过滤器,只需一个接一个地添加它们:

relation["route"="bus"]["name"="Svc 3"](around:{{radius}},{{geocodeCoords:'country'}});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM