dresdner-verkehrsbetriebe-0.1.0: Library and program for querying DVB (Dresdner Verkehrsbetriebe AG)

Copyright(C) 2015 Braden Walters
LicenseMIT (see LICENSE file)
MaintainerBraden Walters <vc@braden-walters.info>
Stabilityexperimental
Portabilityghc
Safe HaskellNone
LanguageHaskell2010

Network.Transportation.Germany.DVB.Route

Description

 

Synopsis

Documentation

type RouteResult = Either Error Route Source

Either route data or an error.

data Route Source

All route data returned from a routing request.

Constructors

Route 

Fields

routeTrips :: [Trip]
 

Instances

data Trip Source

One of the possible trips to get from the origin to the destination.

Constructors

Trip 

Fields

tripDuration :: String
 
tripLegs :: [Leg]
 

Instances

data Leg Source

One segment of a trip (for example: one vehicle).

Constructors

Leg 

Instances

data Stop Source

A stop that the vehicle makes in a leg.

Instances

data StopArrival Source

Arrival at a stop.

Instances

data StopDeparture Source

Departure from a stop.

Instances

data Error Source

All possible errors which could occur while fetching data, including HTTP errors and JSON parsing errors.

Instances

route :: RouteRequest -> IO RouteResult Source

Given information about a desired route, query and return data from DVB.