Use trip's headsign instead of the route's long name for display
This commit is contained in:
parent
32b0fa3392
commit
a95e2a29a0
|
|
@ -283,8 +283,7 @@ class GTFSClient():
|
||||||
|
|
||||||
arrival = ArrivalTime(stop_id = bus["stop_id"],
|
arrival = ArrivalTime(stop_id = bus["stop_id"],
|
||||||
route_id = bus["route_short_name"],
|
route_id = bus["route_short_name"],
|
||||||
# So apparently the GTFS feed uses non-ascii dashes because OF COURSE THEY DO
|
destination = bus["trip_headsign"],
|
||||||
destination = re.split(r"–|-", bus["route_long_name"])[-1].strip(),
|
|
||||||
due_in_seconds = self.__due_in_seconds(bus["arrival_time"]) + delta
|
due_in_seconds = self.__due_in_seconds(bus["arrival_time"]) + delta
|
||||||
)
|
)
|
||||||
arrivals.append(arrival)
|
arrivals.append(arrival)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue