Explorer
Points are stations, stops, and docks; lines are the routes that serve them.
Station hub
ID
940GZZLUKSL
Name
Kensal Green
Hub
HUBKNL
Modes
overground, tube
Coordinates
51.53054, -0.22505
StopPoints in this hub. Poll each id that carries the line you want.
Kensal Green
910GKENSLG
Kensal Green
940GZZLUKSL
Checking for a TfL API key…
{
"id": "940GZZLUKSL",
"name": "Kensal Green",
"kind": "stopPoint",
"modes": [
"overground",
"tube"
],
"lineIds": [
"bakerloo",
"lioness"
],
"hubId": "HUBKNL",
"hubMembers": [
{
"id": "910GKENSLG",
"name": "Kensal Green",
"lineIds": [
"lioness"
]
},
{
"id": "940GZZLUKSL",
"name": "Kensal Green",
"lineIds": [
"bakerloo"
]
}
],
"arrivalsStopIds": [
"940GZZLUKSL",
"910GKENSLG"
],
"aliasIds": [
"910GKENSLG",
"HUBKNL"
],
"lat": 51.530545,
"lon": -0.22505
}stopPoint.get / bikePoint.getById
await client.stopPoint.get("940GZZLUKSL")stopPoint.getArrivals
await client.stopPoint.getArrivals({
stopPointIds: ["940GZZLUKSL","910GKENSLG"],
sortBy: "timeToStation",
})stopPoint.getRoute
await client.stopPoint.getRoute("940GZZLUKSL")