为GTFS中的双向路线定义行程和停止序列

时间:2018-03-21 11:33:46

标签: gtfs

我试图为2个端口(A - B)之间的渡轮定义GTFS馈送。这些港口之间可能有2艘渡轮。

routes.txt

route_id,route_short_name,route_long_name,route_desc,route_type
AB,A-B,A << >> B,Ferry travelling between A and B,4

calender.txt

service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date
FULLWEEK,1,1,1,1,1,1,1,20180103,20180430

trips.txt

route_id,service_id,trip_id,trip_headsign,direction_id,shape_id,wheelchair_accessible,bikes_allowed
AB,FULLWEEK,a_b,B Dest,0,ab_shape,1,1
AB,FULLWEEK,b_a,B Dest,1,ab_shape,1,1

stops.txt

stop_id,stop_name,stop_desc,stop_lat,stop_lon,location_type
A,B-A,Travelling from B to A,xxxx,xxxx,1
B,A-B,Travelling from A to B,xxxx,xxxx,1

stop_times.txt

trip_id,arrival_time,departure_time,stop_id,stop_sequence
a_b,02:45:00,03:00:00,A,1
a_b,04:45:00,05:00:00,A,1
b_a,00:45:00,01:00:00,B,2
b_a,03:45:00,04:00:00,B,2

^^这是错误出现在Feed验证器中的地方

  

trip_id a_b

中的重复stop_sequence

如果我应该使用2条路线而不是1路线(并停止使用direction_id中的trips.txt值)以及时间表的顺序是什么,那么我无法工作,因为时间表两个端口可能无法匹配,因为在两个端口之间可能有多个渡轮运行。

谢谢。

1 个答案:

答案 0 :(得分:-1)

想出来,基本上trips.txt必须包含每个预定出发的条目。我正在对待路线之类的旅行,而实际上每次出发都是自己的“旅行”。