Christmas buses are now available in the vehicle position data. The buses are identified in the feed by the ‘special_vehicle_attributes’ field. When it’s “=1” it is a Christmas bus, when “=0” it is not. Here’s an example:
Hi, I am probably missing something, what are the values for special_vehicle_attributes? For example, 1 = Christmas bus. I can see value of special_vehicle_attributes = 2.
Thanks yet again. Hopefully Open Data has the complete list of the values. Also wondering what happens if it is a Christmas bus with catch wi-fi (permutation values? )
Purely speculation, but my guess is they might end up using bitwise operations, e.g.:
let CHRISTMAS_BUS = 1;
let CATCH_FREE_WIFI = 2;
let SOME_OTHER_ATTR = 4;
// both xmas bus and catch free wifi
CHRISTMAS_BUS | CATCH_FREE_WIFI // = 3
// both some attr and xmas bus
SOME_OTHER_ATTR | CHRISTMAS_BUS // = 5
// both catch free wifi and some other attr
CATCH_FREE_WIFI | SOME_OTHER_ATTR // = 6
// all attributes
CHRISTMAS_BUS | CATCH_FREE_WIFI | SOME_OTHER_ATTR // = 7
Xmas buses for 2020 are now flagged in the buses vehicle position GTFS-R feed.
Special_vehicle_attributes are populated as per the attached bitmask values - keep an eye out for value 12 to get your xmas bus fix.