Copyright | (C) 2015 Braden Walters |
---|---|
License | MIT (see LICENSE file) |
Maintainer | Braden Walters <vc@braden-walters.info> |
Stability | experimental |
Portability | ghc |
Safe Haskell | None |
Language | Haskell2010 |
- data RouteRequest = RouteRequest {}
- type RouteResult = Either Error Route
- data Route = Route {
- routeTrips :: [Trip]
- data Trip = Trip {
- tripDuration :: String
- tripLegs :: [Leg]
- data Leg = Leg {}
- data Stop = Stop {}
- data StopArrival = StopArrival {}
- data StopDeparture = StopDeparture {}
- data Error
- route :: RouteRequest -> IO RouteResult
Documentation
All route data returned from a routing request.
Route | |
|
One of the possible trips to get from the origin to the destination.
Trip | |
|
One segment of a trip (for example: one vehicle).
A stop that the vehicle makes in a leg.
data StopArrival Source #
Arrival at a stop.
data StopDeparture Source #
Departure from a stop.
All possible errors which could occur while fetching data, including HTTP errors and JSON parsing errors.
route :: RouteRequest -> IO RouteResult Source #
Given information about a desired route, query and return data from DVB.