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