GetServiceDetailsRequest {trainR} | R Documentation |
Get service details
Description
Get the service details for a specific service identified by a station board.
These details are supplied relative to the station board from which the
serviceID
field value was generated. Service details are only
available while the service appears on the station board from which it was
obtained. This is normally for two minutes after it is expected to have
departed, or after a terminal arrival. If a request is made for a service
that is no longer available then a NULL
value is returned.
Usage
GetServiceDetailsRequest(
serviceID,
token = get_token(),
url = "https://lite.realtime.nationalrail.co.uk/OpenLDBWS/ldb11.asmx",
verbose = FALSE
)
Arguments
serviceID |
(string): The LDBWS service ID of the service to request
the details of. The service ID is obtained from a service listed in a
|
token |
Token to access the data feed. The token can be obtained at http://realtime.nationalrail.co.uk/OpenLDBWSRegistration/. |
url |
Data feed source URL. |
verbose |
Boolean flag to indicate whether or not to show status messages. |
Value
Tibble with departure records.