I am wanting to clear up some confusion about how occupancy_status should be displayed in Vehicle Positions feed. The examples I see appear to be strings, but when we use a string like “STANDING_ROOM_ONLY”, our protobuf unit tests fail.
Which of the following examples is correct? int, string, or string without quotes?
INT
"id": "6",
"vehicle": {
"vehicle": {
"id": "14312",
"label": "95828"
},
"position": {
"latitude": 33.958403,
"longitude": -83.3722331,
"bearing": 257
},
"occupancy_status": 3,
"current_stop_sequence": 2,
"stop_id": "155085",
"timestamp": 1711458700,
"trip": {
"trip_id": "611383"
}
}
STRING
"id": "6",
"vehicle": {
"vehicle": {
"id": "14312",
"label": "95828"
},
"position": {
"latitude": 33.958403,
"longitude": -83.3722331,
"bearing": 257
},
"occupancy_status": "STANDING_ROOM_ONLY",
"current_stop_sequence": 2,
"stop_id": "155085",
"timestamp": 1711458700,
"trip": {
"trip_id": "611383"
}
}
STRING WITHOUT QUOTES
"id": "6",
"vehicle": {
"vehicle": {
"id": "14312",
"label": "95828"
},
"position": {
"latitude": 33.958403,
"longitude": -83.3722331,
"bearing": 257
},
"occupancy_status": STANDING_ROOM_ONLY,
"current_stop_sequence": 2,
"stop_id": "155085",
"timestamp": 1711458700,
"trip": {
"trip_id": "611383"
}
}
--
You received this message because you are subscribed to the Google Groups "GTFS-realtime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gtfs-realtim...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gtfs-realtime/d6d6757c-6b3e-4151-aa08-e0abf620d784n%40googlegroups.com.