View Single Post
R-R's Avatar
Posts: 739 | Thanked: 242 times | Joined on Sep 2007 @ Montreal
#4
Originally Posted by krk969 View Post
yeah for the london underground trains at the moment I query websites using station inputs as parameters and display the data here in the app slightly formatted for easy reading and quick loading.
If you succeed to find something for Montreal it would be trivial to add it. . Let me try the site you gave me.

*EDIT* can you also give me examples so I can enter them in the website to retrieve something
The metro lines look simple to add , just html output looks like.

cheers
hehe, sure :-)

A bus number exemple:

55 is the St-Laurent street bus, you have to choose either north or south.
(which i think is stupid because if you don't know and put east, it's going to say invalid bus route ... you have to guess!)

On that bus line you have different stops, for example where St-Laurent street intersects Rachel, you have the stop # 52103.

Now that stop number can also be used on the site and will show schedule for 2 other bus (29 and 363) that also stop at this ... stop.
(that is if you don't specify 55 again to exclude the 2 others).

Also, the results seem to have been half translated from french to English (nuit for night, nord for north, etc) but it doesn't really matter for schedule time ;-)

I know there is at least 1 or 2 iPhone apps doing this but I think the XML part is not out yet, at least, it's mentioned in the comments as a request but that was more than a year ago... And looking at the HTML on the search result page, it looks to be a pain to parse!

As for the metro, basically we don't have schedule, just first / last train time, so that's pretty simple. They're working on something more real time, just can't figure out where it is (or if it's public yet :-/)


EDIT:

There is also http://www.stm.info/english/bus/a-index.htm
which is another way to access bus schedule just by bus number and only then picking direction / stop

Last edited by R-R; 2010-01-20 at 21:11.
 

The Following User Says Thank You to R-R For This Useful Post: