September 2022

S M T W T F S
    123
45678910
11121314151617
181920 21222324
2526 27282930 

Style Credit

Expand Cut Tags

No cut tags
Wednesday, October 24th, 2007 09:16 am
I know this won't be useful to many of you, but I wanted to get it indexed as a public service.

If you want to create a link to Vancouver TransLink's NextBus page that will always load for right now (as compared to the time when you happened to bookmark it), add a bookmark with the following URL:

javascript:d = new Date(); document.location = "http://tripplanning.translink.bc.ca/hiwire?.a=iNextBusFind&.s=%7B%24SID%7D&ShowTimes=1&NumStopTimes=5&LineDirId=&GetSchedules=1&Geocode=0&FormState=0&StopAbbr=XXXXX&FromHourDropDown=" + d.getHours() * 100 + "&FromMinuteDropDown=" + d.getMinutes() + "&FromMeridiemDropDown=" + (d.getHours() >= 12 ? 'p' : 'a') + "&SB=Search&.a=iTripPlanning";

Replace XXXXX with whatever stop number you're interested in. Boom, quick and easy way to check for the next bus arrival.
Wednesday, October 24th, 2007 07:11 pm (UTC)
If you visit the NextBus page, the form defaults to right now. But the search results have the time hardcoded into the URL, so if you bookmark that page, every time you visit it the results will be for the same time. Using the javascript lets you jump directly to the search results for right now. It's very silly that I have to do this -- the page should have a 'right now' option. But transit website tend to suck that way.
Wednesday, October 24th, 2007 07:32 pm (UTC)
That computes. And as much as I like silliness, it's nice to know I have friends out there who are good at dispelling this particular sort of silliness. Another blow struck for the cause of disgruntled public transportation users - huzzah!

&:þ