Explorer
Points are stations, stops, and docks; lines are the routes that serve them.
Station hub
ID
940GZZLUBKG
Name
Barking
Hub
HUBBKG
Modes
overground, tube
Coordinates
51.53941, 0.08099
StopPoints in this hub. Poll each id that carries the line you want.
Barking
910GBARKING
Barking
940GZZLUBKG
Checking for a TfL API key…
940GZZLUBKG940GZZLUBKG910GBARKING{
"id": "940GZZLUBKG",
"name": "Barking",
"kind": "stopPoint",
"modes": [
"overground",
"tube"
],
"lineIds": [
"district",
"hammersmith-city",
"suffragette"
],
"hubId": "HUBBKG",
"hubMembers": [
{
"id": "910GBARKING",
"name": "Barking",
"lineIds": [
"suffragette"
]
},
{
"id": "940GZZLUBKG",
"name": "Barking",
"lineIds": [
"district",
"hammersmith-city"
]
}
],
"arrivalsStopIds": [
"940GZZLUBKG",
"910GBARKING"
],
"aliasIds": [
"910GBARKING",
"HUBBKG"
],
"lat": 51.539413,
"lon": 0.080988
}stopPoint.get / bikePoint.getById
await client.stopPoint.get("940GZZLUBKG")stopPoint.getArrivals
await client.stopPoint.getArrivals({
stopPointIds: ["940GZZLUBKG","910GBARKING"],
sortBy: "timeToStation",
})stopPoint.getRoute
await client.stopPoint.getRoute("940GZZLUBKG")