Explorer
Points are stations, stops, and docks; lines are the routes that serve them.
Station hub
ID
940GZZLUSBC
Name
Shepherd's Bush
Hub
HUBSPB
Modes
overground, tube
Coordinates
51.50436, -0.21833
StopPoints in this hub. Poll each id that carries the line you want.
Shepherds Bush
910GSHPDSB
Shepherd's Bush
940GZZLUSBC
Checking for a TfL API key…
{
"id": "940GZZLUSBC",
"name": "Shepherd's Bush",
"kind": "stopPoint",
"modes": [
"overground",
"tube"
],
"lineIds": [
"central",
"mildmay"
],
"hubId": "HUBSPB",
"hubMembers": [
{
"id": "910GSHPDSB",
"name": "Shepherds Bush",
"lineIds": [
"mildmay"
]
},
{
"id": "940GZZLUSBC",
"name": "Shepherd's Bush",
"lineIds": [
"central"
]
}
],
"arrivalsStopIds": [
"940GZZLUSBC",
"910GSHPDSB"
],
"aliasIds": [
"910GSHPDSB",
"HUBSPB"
],
"lat": 51.5043576,
"lon": -0.2183251
}stopPoint.get / bikePoint.getById
await client.stopPoint.get("940GZZLUSBC")stopPoint.getArrivals
await client.stopPoint.getArrivals({
stopPointIds: ["940GZZLUSBC","910GSHPDSB"],
sortBy: "timeToStation",
})stopPoint.getRoute
await client.stopPoint.getRoute("940GZZLUSBC")