Is the GTFS position link empty right now? (https://gtfs.translink.ca/v2/gtfsposition)

37 views
Skip to first unread message

Matthew Pitlock

unread,
Jan 15, 2021, 1:25:17 PM1/15/21
to TransLink Developers
I am getting an unusual output when I try to read the gtfspostition link into a python parsing function. I expected a raw html block with the vehicle position data. Instead I get an odd string of characters. It seems like this link may be empty at the moment. Is anyone else experiencing this problem? If not, am I missing a step for opening this xml?

Below is a screenshot of my Jupyter Cell and the resulting output.

image.png

Thank you,

Matt 

Alan Fisher

unread,
Jan 15, 2021, 7:42:55 PM1/15/21
to translink-...@googlegroups.com
Instead I get an odd string of characters.
It looks like you're printing the raw encoded Protobuf message, instead of first decoding it and then printing out the decoded version. When I decode the gtfsposition response currently, I get

header {
  gtfs_realtime_version: "2.0"
  incrementality: FULL_DATASET
  timestamp: 1610757451
}


It seems like this link may be empty at the moment
Currently no buses are displaying in the feed, likely as a result of the recent cybersecurity event at TransLink (see https://www.translink.ca/news/2020/december/statement%20from%20translink%20ceo%20kevin%20desmond ). It's unclear when this will become available again.

Note that I am not affiliated with or employed by TransLink, so I cannot speak for them.

-Alan

--
You received this message because you are subscribed to the Google Groups "TransLink Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to translink-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/translink-developers/CAF%2B%3DtDZffvj9Vpmx-uy_-OY_sL7WoXooLF1xv2MtrmG6dF0hcQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages