-
Notifications
You must be signed in to change notification settings - Fork 1
TransitAdapterInterface
Describes the interface for the adapters to be used with the Transit service.
Gets every stop. This method should minimize the number of requests to the API.
Returns: Promise
An array of StopLiteral.
Gets information of a bus with busId
as id
.
Returns: Promise
A BusLiteral. The promise should reject if a bus with such id cannot be found.
Get adapter configurations.
Returns: TransitAdapterConfigLiteral
Get an array of stops that are near the location.
Returns: Promise
An array of StopId.
Get an array of upcoming departures of the stop with id stopId
.
Returns: Promise
An array of DepartureLiteral.
Get an array of stops that best match the input string. This method should be quick and lightweight as it may be used for autocompletion purposes.
Returns: Promise
An array of StopId.