Explorer
Points are stations, stops, and docks; lines are the routes that serve them.
Station hub
ID
940GZZLUPAC
Name
Paddington
Hub
HUBPAD
Modes
elizabeth-line, tube
Coordinates
51.51548, -0.17536
StopPoints in this hub. Poll each id that carries the line you want.
Paddington
910GPADTLL
Paddington
940GZZLUPAC
Paddington
940GZZLUPAH
Checking for a TfL API key…
940GZZLUPAC940GZZLUPAC940GZZLUPAH940GZZLUPAC910GPADTLL{
"id": "940GZZLUPAC",
"name": "Paddington",
"kind": "stopPoint",
"modes": [
"elizabeth-line",
"tube"
],
"lineIds": [
"bakerloo",
"circle",
"district",
"elizabeth",
"hammersmith-city"
],
"hubId": "HUBPAD",
"hubMembers": [
{
"id": "910GPADTLL",
"name": "Paddington",
"lineIds": [
"elizabeth"
]
},
{
"id": "940GZZLUPAC",
"name": "Paddington",
"lineIds": [
"bakerloo",
"circle",
"district"
]
},
{
"id": "940GZZLUPAH",
"name": "Paddington",
"lineIds": [
"circle",
"hammersmith-city"
]
}
],
"arrivalsStopIds": [
"940GZZLUPAC",
"910GPADTLL",
"940GZZLUPAH"
],
"aliasIds": [
"910GPADTLL",
"910GPADTON",
"940GZZLUPAH",
"HUBPAD"
],
"lat": 51.5154795,
"lon": -0.175365
}stopPoint.get / bikePoint.getById
await client.stopPoint.get("940GZZLUPAC")stopPoint.getArrivals
await client.stopPoint.getArrivals({
stopPointIds: ["940GZZLUPAC","910GPADTLL","940GZZLUPAH"],
sortBy: "timeToStation",
})stopPoint.getRoute
await client.stopPoint.getRoute("940GZZLUPAC")