Hi, I am subscribing to the 4/5/6 and 1/2/3 train (using the python package underground.)
The station I am trying to parse is Grand Central, which has the ID 631N (for northbound trains)
How do I differentiate between the various stop-times being for the 4 or 5 or 6 train?
For example: Here is the code snippe
import underground
ROUTE4 = ‘4’
ROUTE5 = ‘5’
ROUTE6 = ‘6’
Feed4 = underground.SubwayFeed(ROUTE4,api_key=MY_API_KEY)
Feed5 = underground.SubwayFeed(ROUTE5,api_key=MY_API_KEY)
Feed6 = underground.SubwayFeed(ROUTE6,api_key=MY_API_KEY)
Feed_ext4 = feed4.extract_stop_dict()
Feed_ext5 = feed5.extract_stop_dict()
Feed_ext6 = feed6.extract_stop_dict()
However, I can get times now for :
Feed_ext6[‘6’][‘631N’]
Feed_ext6[‘4’][‘631N’]
Feed_ext4[‘4’][‘631N’]
Feed_ext4[‘6’][‘631N]
Which generally are all different. This has me a tad confused. I would have expected that Feed4 only has stops from the 4 train. But how come it seems to show stop times for 6 trains also?
And the times for Feed_ext6[‘6’][‘631N’] != Feed_ext4[‘6’][‘631N’]
Clearly I am missing something quite fundamental here. Would appreciate any elucidation.
Cheers
PeterP