所以我正在构建一个交通应用程序,它为我提供了一个数据库上的 stop_id。我如何找到停靠的巴士?例如:10 路和 23 路公交车经过 stop_id# 1234 我尝试了下面的查询,但它每次只为我提供一辆公交车
select distinct r.route_short_name
from routes r, trips t, stop_times st
where r.route_id = t.route_id
and t.trip_id = st.trip_id
and st.stop_id =
我检查了我的 gtfs 文件,发现 stop_id# 1234 有两辆不同的巴士为其提供服务。我也试过没有 DISTINCT,它只是重复列出同一条总线。任何意见/帮助/想法表示赞赏。