Explorer
Points are stations, stops, and docks; lines are the routes that serve them.
Station hub
ID
940GZZLUKOY
Name
Kensington (Olympia)
Hub
HUBKPA
Modes
overground, tube
Coordinates
51.49616, -0.21050
StopPoints in this hub. Poll each id that carries the line you want.
Kensington (Olympia)
910GKENOLYM
Kensington (Olympia)
940GZZLUKOY
Checking for a TfL API key…
{
"id": "940GZZLUKOY",
"name": "Kensington (Olympia)",
"kind": "stopPoint",
"modes": [
"overground",
"tube"
],
"lineIds": [
"district",
"mildmay"
],
"hubId": "HUBKPA",
"hubMembers": [
{
"id": "910GKENOLYM",
"name": "Kensington (Olympia)",
"lineIds": [
"mildmay"
]
},
{
"id": "940GZZLUKOY",
"name": "Kensington (Olympia)",
"lineIds": [
"district"
]
}
],
"arrivalsStopIds": [
"940GZZLUKOY",
"910GKENOLYM"
],
"aliasIds": [
"910GKENOLYM",
"HUBKPA"
],
"lat": 51.496156,
"lon": -0.210502
}stopPoint.get / bikePoint.getById
await client.stopPoint.get("940GZZLUKOY")stopPoint.getArrivals
await client.stopPoint.getArrivals({
stopPointIds: ["940GZZLUKOY","910GKENOLYM"],
sortBy: "timeToStation",
})stopPoint.getRoute
await client.stopPoint.getRoute("940GZZLUKOY")