Hi - although the trip API call returns, among other things, platform-specific stop IDs, neither the trip nor stop_finder APIs allow the user to actually specify said stop IDs, either as a requested origin/destination or to get more information about said stop.
If I provide a platform-specific stop ID, for example 2121221 (Epping Station, Platform 1), calling stop_finder just returns info about the parent (212110, Epping Station itself). And trip does the same - it just assumes that I want to leave from Epping.
It’s possibly an edge case but given that the platform-specific stop IDs do exist, and that anyone using the API is by definition a power user, allowing the API caller to specify child stop IDs if they’ve been provided and have them factored into the return makes sense to me.
Best regards as always,
Andy
1 Like
Not an official answer, but a workaround that may help until the API supports it: the static GTFS stops.txt links platforms to stations through parent_station, with location_type 0 for a platform/stop and 1 for the station. So you can look up a platform ID such as 2121221 and read its parent_station to get the station ID. The Trip Planner only accepts the station-level ID as origin/destination, and I don’t believe it has a platform-level filter. If you need a particular platform, one option is to request trips from the station and then filter the returned legs by the platform shown in the origin stop details.
2 Likes
Thanks for the comment @colorfulcms… and yes, the filtering you suggest post-call is exactly what I’m doing!
It’s a shame though as it means that I have to request a load more journeys than I might actually want so I’ve got enough to sift through to still get as many as I need (up to 3) and have the desired platform-specific origin or destination… and as an occasional software engineer myself, it’s… inelegant 
1 Like