Incorrect Station IDs

Hi,

I’ve been playing around with the API in an app and I noticed some discrepancy between station IDs when I use the Stop Point Search API and when I use the Line API.

An example is for Southwood Avenue. When I use the stop point search using the stations common name it returns an ID of 490G000756 and then when I use this in the Stop Point Arrivals API I get an empty array returned.

However, when I search a line that uses this stop, the 43 for example, I can see that Southwood Avenue is returned with arrival times and the ID is 490012359S.

I’m wondering if I’m missing something here? Or if this is just a mistake? Many thanks for any clarification on this.

Cheers,
Adam

Hi Adam, welcome to the forum.

StopPoints work as a hierarchy. 490G000756 is a group of stops (this is indicated by the letter G as the fourth character in the ID). In this case, the group only contains one individual stop, which is 490012359S (the 0 as the fourth character indicates it is an individual stop). Please use this latter code for the individual stop to retrieve live arrivals.

I describe this in more detail here:

Ah I see, so you have to make the addtional request to find the children for the ID returned from the Search API.

Thank you for the reply and clarification.

Cheers,
Adam