Stop times (r:stoptimes)¶
http://rels.goabout.com/stoptimes
The stop times relation links a transit stop Location (p:location) to the Transit stop times (p:stoptimes) of transit journeys that stop there within an interval.
Example¶
{
"_links" : {
"http://rels.goabout.com/stoptimes" : {
"href" : "https://api.goabout.com/location/stop/9e43ca13/stoptimes{?interval}",
"templated" : true
}
}
}
A GET
request to the URL https://api.goabout.com/location/stop/9e43ca13/stoptimes?interval=2013-01-01T15:15:00.000Z/PT1h
will return all the times that a vehicle will stop at the location (from where you followed this href) bewteen 15
minutes past 3PM, on January 1st til 15 minutes past 4PM. (i.e. a one hour window)
Reference¶
The profile of the linked resource is Transit stop times (p:stoptimes)
The link template uses the following variable:
Name | Description | Default |
---|---|---|
interval | The interval in ISO 8601 notation. If only a period is given, now is the assumed start time. | now/PT1H |