This shows the next arrivals at a selected bus stop for a selected route.
- It expects 3 parameters in the URL: stop1, stop2 and route. stop1 and stop2 are the Naptan codes for the bus stops,
and route is the bus route.
- Hence https://www.joncassidy.com/nextbus.html?stop1=490000208B&stop2=490001173T&route=65.
- Stop2 is only used as an alternative, so clicking on it swaps to see arrivals from that stop.
It is intended as a normal school/work destination, and the page defaults to use stop2 first in the afternoon.
The buses are not filtered to ensure they go to stop2.
- Either put the stops into the URL, or enter them in the setup section. They are then stored as cookies so next time you don't need the full URL
- Find the Naptan ID by going to TfL, search for your stop.
If there is more tha one match, select the actual stop on the next page. Then the URL (at the top of the browser)
will have the Naptan code after https://tfl.gov.uk/bus/stop/ but before the name.
The full list of Naptan IDs are also available here
One day I'll add an easier lookup.