dresdner-verkehrsbetriebe-1.0.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

Instances

data Trip Source #

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

Constructors

Trip 

Fields

Instances

data Leg Source #

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

Constructors

Leg 

Instances

Show Leg Source # 

Methods

showsPrec :: Int -> Leg -> ShowS #

show :: Leg -> String #

showList :: [Leg] -> ShowS #

data Stop Source #

A stop that the vehicle makes in a leg.

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.