Response returns info with different NAPTAN id


#1

Hi,

Requesting StopPoint information, for instance

https://api.tfl.gov.uk/StopPoint/40004408187A

I expect to receive info about particular stop point. However this request returns info for NAPTAN id 910GLETHRHD.

Is this expected behaviour? And, if so, what is the reason?


#2

Yes, this is expected behaviour, the API always returns all the stops in the group - 910GLETHRHD (Leatherhead Rail Station) is the topmost parent of the group of stops/stations in the area, including 40004408187A (Park Rise). If you drill down (repetitively) through the children entries, you will find the stop you requested, as well as all the others in the group.