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