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