When trackwork is occurring and bus services replace trains, is there an enumeration which is used to indicate this from the departure_mon API ?
seeing this JSON for example of stations with buses replacing trains:
{
"location": {
"id": "2533193",
"isGlobalId": true,
"name": "Minnamurra, Minnamurra Station, Railway Ave",
"type": "platform",
"coord": [
-34.62633,
150.85306
],
"parent": {
"id": "10101384",
"name": "Minnamurra, Minnamurra Station, Railway Ave",
"disassembledName": "Minnamurra Station, Railway Ave",
"type": "stop",
"parent": {
"id": "95353012|1",
"name": "Minnamurra",
"type": "locality"
}
}
},
"departureTimePlanned": "2018-12-23T01:27:00Z",
"transportation": {
"id": "nsw:015SC: :R:sj2",
"name": "Temporary buses 5SC",
"disassembledName": "5SC",
"number": "5SC",
"iconId": 14,
"description": "Kiama, then all stations to Oak Flats",
"product": {
"class": 5,
"name": "Temporary buses",
"iconId": 5
},
"operator": {
"id": "700",
"name": "train replacement bus operators"
},
"destination": {
"name": "Oak Flats",
"type": "stop"
},
"properties": {
"tripCode": 32,
"mtSubcode": "0"
},
"origin": {
"name": "Kiama Station",
"type": "stop"
}
},
"infos": [
{
"timestamps": {
"creation": "2018-12-05T00:53:00Z",
"lastModification": "2018-12-11T00:08:00Z"
},
"priority": "normal",
"id": "6027803",
"version": "1",
"urlText": "Buses replace trains between Bomaderry and Wollongong",
"url": "http://localhost:8085/ics/XSLT_CM_SHOWADDINFO_REQUEST?infoID=6027803&seqID=1",
"content": "<strong>Saturday 22 and Sunday 23 December</strong>\n<ul>\n<li>Buses replace trains between Bomaderry and Wollongong.</li>\n<li>Trains run to the normal timetable between Port Kembla, Wollongong and the City.</li>\n<li><a href=\"https://transportnsw.info/trip\">Plan your trip</a> before you travel for up-to-date information.</li>\n</ul>\n ",
"subtitle": "Buses replace trains between Bomaderry and Wollongong"
}
],
"properties": {
"WheelchairAccess": "false"
}
}
There are a few places here where buses replacing trains is being shown, but which is the real one? (want to avoid filtering .name attributes for “Temporary buses”. Which is the correct enumeration ? is it transportation.product.class
= 5 ? is it part of the transportation.id
? should i use infos
?
Thanks for your time