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 |
Network.Transportation.Germany.DVB.Route
Description
- 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.
Constructors
Route | |
Fields
|
One of the possible trips to get from the origin to the destination.
Constructors
Trip | |
Fields
|
One segment of a trip (for example: one vehicle).
A stop that the vehicle makes in a leg.
Constructors
Stop | |
Fields |
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.