Arrivals API shows "null" as platform name (Bus stop)


#1

the arrivals for “New Cavendish Street” show null as platform name. (there might be other stops affected as well)

https://api.tfl.gov.uk/Stoppoint/490010198W/Arrivals

..."naptanId":"490010198W","stationName":"New Cavendish Street","lineId":"88","lineName":"88","platformName":"null"...

it should be “W” here.

for other stops, e.g. “Great Portland Street”, it normally does contain the stop letter

https://api.tfl.gov.uk/Stoppoint/490000091F/arrivals

..."naptanId":"490000091F","stationName":"Great Portland Street Station","lineId":"88","lineName":"88","platformName":"F"...

#2

with the answer of Bus Stop Letters with prepended "->" this is already resolved I think: the bus stop simply does not have a stop letter

so this topic can be closed I think…


#3

Personally, I’m getting the stop letters from stopLetter in stopPoint in stopPointSequences, as I extract them from /Line/Route/Sequence. However, allowing for the prepended -> issue already mentioned. I agree that this one is indeed showing a null (it did not have a stop letter last time (Oct 2015) I was there).

By my count there are about 300 stops where the letter is either mismatched with reality, shown but not present or present but not shown. Note that this figure also includes any errors by me in recording what I’ve seen. I suspect that keeping this data accurate with reality is a full time job and a 1% error rate seems pretty reasonable in the circumstances.


#4

Hi @nickp - do you have any details on the stops that are affected?


#5

I do, but the forum won’t let me upload a spreadsheet. The attached file should be renamed to Mistmatched Stops.xlsx before opening. [Edit: Looks like it won’t accept it even if I rename it to .png. If you PM me with a suitable email address, I’ll forward the file to you]

In general, if there is some evidence of there having been a letter disc, I’ve assumed that your data is correct, otherwise I’ve gone with what I saw. My '-'s are the equivalent of your nulls/zero-length strings. The dates are the date that I first visited the stop, not necessarily the most recent visit.


#6

Hi @nickp

Can you please email it to [email protected] and I’ll pick it up from there.

Thanks,
James


#7

On its way to you

Regards
Nick