Explorer
Points are stations, stops, and docks; lines are the routes that serve them.
Station hub
ID
940GZZLUWPL
Name
Whitechapel
Hub
HUBZWL
Modes
elizabeth-line, overground, tube
Coordinates
51.51950, -0.05986
StopPoints in this hub. Poll each id that carries the line you want.
Whitechapel
910GWCHAPEL
Whitechapel
910GWCHAPXR
Whitechapel
940GZZLUWPL
Checking for a TfL API key…
940GZZLUWPL940GZZLUWPL910GWCHAPXR910GWCHAPEL{
"id": "940GZZLUWPL",
"name": "Whitechapel",
"kind": "stopPoint",
"modes": [
"elizabeth-line",
"overground",
"tube"
],
"lineIds": [
"district",
"elizabeth",
"hammersmith-city",
"windrush"
],
"hubId": "HUBZWL",
"hubMembers": [
{
"id": "910GWCHAPEL",
"name": "Whitechapel",
"lineIds": [
"windrush"
]
},
{
"id": "910GWCHAPXR",
"name": "Whitechapel",
"lineIds": [
"elizabeth"
]
},
{
"id": "940GZZLUWPL",
"name": "Whitechapel",
"lineIds": [
"district",
"hammersmith-city"
]
}
],
"arrivalsStopIds": [
"940GZZLUWPL",
"910GWCHAPXR",
"910GWCHAPEL"
],
"aliasIds": [
"910GWCHAPEL",
"910GWCHAPXR",
"HUBZWL"
],
"lat": 51.519498,
"lon": -0.059858
}stopPoint.get / bikePoint.getById
await client.stopPoint.get("940GZZLUWPL")stopPoint.getArrivals
await client.stopPoint.getArrivals({
stopPointIds: ["940GZZLUWPL","910GWCHAPXR","910GWCHAPEL"],
sortBy: "timeToStation",
})stopPoint.getRoute
await client.stopPoint.getRoute("940GZZLUWPL")