Network Rail location line-up: train services calling at a location in a time window.
GET/gb-nr/location
- Passive: the target is not contacted
Returns services at one location with scheduled and realtime times, platform and reasons. The default window is 60 minutes from now; the maximum query duration is 23 hours 59 minutes. Time-window options may be limited by your token.
Query parameters
codeAny short or long code of the location
filterFromOnly trains previously calling at this location code
filterToOnly trains subsequently calling at this location code
timeFromStart of the time window, ISO 8601; defaults to now
timeToEnd of the time window, ISO 8601; not usable with timeWindow
timeWindowWindow length in minutes; not usable with timeTo
detailedEnable detailed mode when your entitlements allow it
Response fields · 14ShowHide
realtimeNetworkRail
Status of the Network Rail real-time ingress
description
Long description of the location
shortCodes[]
Short codes of the location
timeFrom
Start of the window used
timeTo
End of the window used
uniqueIdentity
Unique identifier of the service on that day
identity
Operating identity of the service
departureDate
Departure date from the planned origin
operator
Train operator
arrival
Arrival times at this location
departure
Departure times at this location
platform
Platform information
origin[]
Origins of the service
destination[]
Destinations of the service
curl 'https://data.rtt.io/gb-nr/location?code=CLPHMJN' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"systemStatus": {
"realtimeNetworkRail": "UP",
"rttCore": "UP"
},
"query": {
"location": {
"namespace": "gb-nr",
"description": "Example Junction",
"shortCodes": [
"EXJ"
],
"longCodes": [
"EXAMPLEJN"
]
},
"timeFrom": "2025-10-25T13:00:00Z",
"timeTo": "2025-10-25T14:00:00Z"
},
"services": [
{
"scheduleMetadata": {
"uniqueIdentity": "L00000:2025-10-25",
"namespace": "gb-nr",
"identity": "L00000",
"departureDate": "2025-10-25",
"operator": {
"code": "XX",
"name": "Example Rail"
}
},
"temporalData": {
"arrival": {},
"departure": {}
},
"origin": [],
"destination": []
}
]
}