Jump to content
Sign in to follow this  
Montreal_Bus_Fan

STM run number and run ID

Recommended Posts

A run (also known as a block) is a collection of trips. In general, there exists a different set of runs for weekdays, Saturdays, Sundays and each holiday. Obviously, this changes every time the schedules are updated.

The run is assigned a specific bus for the day and is given an identifying number.

Run numbers:

  • The format for run numbers is XXX-YYY (e.g. 15-01) where XXX is the route on which it spends the most time, and YYY is the identifying number.
  • No two runs will operate on the same route if they have the same number.
    • Priority always goes to the route with the lower number.
      • For example, if 15-01 does a trip on the 24 the lowest 24-XX run number would be 24-02.
  • The number assigned is the lowest possible following the above rules, in order of dispatch time.

Trip ID's:

  • Each run completes a sequence of trips. Each trip is assigned a unique 9-digit identifying number in the STM's open data (GTFS).
  • Depending on how the STM decides to export the data, the trip ID's may be arranged in order of their respective run. If so, my tool can be used to predict where the bus will be.

image.thumb.png.218a1ce3ec8493e592ed2320b4b6a6c1.png

  • If all the timings make sense, then it likely does represent a run, but you can't 100% trust it. The above image appears to be a 191-XX run, although the 191 trips aren't perfectly ordered. To get the XX would require actually spotting the bus.

The run numbers are essentially irrelevant now, but some of us find it fun to figure them out. They used to be published in the STM open data before we had real time tracking (before March 2018). In Toronto, the TTC still does this and you can see it on TransSee:

image.thumb.png.c8aab7045aec1f7396562011ce6fa368.png

Other transit systems publish their runs in an open data field called "block_id", which allows sites like Transit55 to include this information.

 

  • Like 5

Share this post


Link to post
Share on other sites

Gerbil thank you so much for that! Something tells me you have a google sheet where you put all the numbers of buses?

Also, on run number sign, corner of windshield, is the run number? (Ex. : 0015) ?

Share this post


Link to post
Share on other sites
54 minutes ago, Montreal_Bus_Fan said:

Gerbil thank you so much for that! Something tells me you have a google sheet where you put all the numbers of buses?

Also, on run number sign, corner of windshield, is the run number? (Ex. : 0015) ?

The wiki has all the fleet numbers and details about the buses. It's time consuming to update, so that's not done frequently. @West Island Transit Fan's spreadsheet has more up to date information on bus activity.

And you're correct about the run number. Although it often isn't set correctly if the bus is only out briefly for rush hour.

Share this post


Link to post
Share on other sites

I have a web app called FleetStats which serves the same purpose as @West Island Transit Fan's spreadsheet, but automates the update process of gathering bus information. It's currently in beta mode though so as @Gerbil mentioned, WITF's spreadsheet contains the most up to date information about buses (the wiki is really outdated, like years outdated!)

  • Like 3

Share this post


Link to post
Share on other sites
On 6/6/2020 at 11:27 AM, Gerbil said:

A run (also known as a block) is a collection of trips. In general, there exists a different set of runs for weekdays, Saturdays, Sundays and each holiday. Obviously, this changes every time the schedules are updated.

The run is assigned a specific bus for the day and is given an identifying number.

Run numbers:

  • The format for run numbers is XXX-YYY (e.g. 15-01) where XXX is the route on which it spends the most time, and YYY is the identifying number.
  • No two runs will operate on the same route if they have the same number.
    • Priority always goes to the route with the lower number.
      • For example, if 15-01 does a trip on the 24 the lowest 24-XX run number would be 24-02.
  • The number assigned is the lowest possible following the above rules, in order of dispatch time.

Trip ID's:

  • Each run completes a sequence of trips. Each trip is assigned a unique 9-digit identifying number in the STM's open data (GTFS).
  • Depending on how the STM decides to export the data, the trip ID's may be arranged in order of their respective run. If so, my tool can be used to predict where the bus will be.

image.thumb.png.218a1ce3ec8493e592ed2320b4b6a6c1.png

  • If all the timings make sense, then it likely does represent a run, but you can't 100% trust it. The above image appears to be a 191-XX run, although the 191 trips aren't perfectly ordered. To get the XX would require actually spotting the bus.

The run numbers are essentially irrelevant now, but some of us find it fun to figure them out. They used to be published in the STM open data before we had real time tracking (before March 2018). In Toronto, the TTC still does this and you can see it on TransSee:

image.thumb.png.c8aab7045aec1f7396562011ce6fa368.png

Other transit systems publish their runs in an open data field called "block_id", which allows sites like Transit55 to include this information.

 

A couple of corrections. The run number is determined via the dominant line (15-01, with 15 being the dominate line). A route can have 2 buses operating on a same Run number (01 for example), but is differentiated by the dominate line. So 15-01 could do a trip on the 24 at the same time as 24-01. The system will differentiate it through the dominate line. The STM tries not to have this happen, but could happen, though rarely. Most assignments that interline between routes are given higher run numbers, where are runs 01, 02, 03, 04 and 05 generally stay on their dominate route for the whole day.

Run numbers are automatically set by the ibus system now, so run numbers should all be correct unless the ibus system is offline, which seems to be the case for some buses as per sightings of buses not tracking. Buses with manual run boxes are set by the driver when leaving the garage. In the case of a 3 digit run number (Example 420-108), the last 2 digits are displayed on the box.

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, MTL66 said:

A couple of corrections. The run number is determined via the dominant line (15-01, with 15 being the dominate line). A route can have 2 buses operating on a same Run number (01 for example), but is differentiated by the dominate line. So 15-01 could do a trip on the 24 at the same time as 24-01. The system will differentiate it through the dominate line. The STM tries not to have this happen, but could happen, though rarely. Most assignments that interline between routes are given higher run numbers, where are runs 01, 02, 03, 04 and 05 generally stay on their dominate route for the whole day.

Run numbers are automatically set by the ibus system now, so run numbers should all be correct unless the ibus system is offline, which seems to be the case for some buses as per sightings of buses not tracking. Buses with manual run boxes are set by the driver when leaving the garage. In the case of a 3 digit run number (Example 420-108), the last 2 digits are displayed on the box.

Thank you so much!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...