efa - unofficial efa.vrr.de command line client
version 2.02
efa is a command line client for the http://efa.vrr.de web interface. It sends the specified information to the online form and displays the results.
It should be noted that efa, although using the web interface of a local transport association, is able to look up connections all over Germany.
Departure place
Arrival place
Travel via this place
In case you want stop to be an address or "point of interest", you can set it to 'addr:something' or 'poi:something'.
Journey start time
Journey end time (overrides --time/--depart)
Journey date
Choose connections allowing to carry a bike
Exclude transports (comma separated list).
Possible transports: zug, s-bahn, u-bahn, stadtbahn, tram, stadtbus, regionalbus, schnellbus, seilbahn, schiff, ast, sonstige
Display duration, ticket class and price for each route (if available)
Print connections with at most number interchanges
Prefer connections of type:
The faster, the better
Prefer connections with less interchanges
Prefer connections with less walking (at interchanges)
Take stops close to the stop/start into account and possibly use them instead
Include connections using trains of type type, where type may be:
only take local trains ("Verbund-/Nahverkehrslinien"). Slow, but the cheapest method if you're not travelling long distance
Local trains + IC
All trains (local + IC + ICE)
Set your walking speed to speed. Accepted values: normal (default), fast, slow
Ignore additional information matching regex (default: /Fahrradmitnahme/)
If regex is not supplied, removes the default regex (-> nothing will be ignored)
Set timeout for HTTP requests. Default: 60 seconds.
Add key with value to the HTTP POST request sent to the EFA server.
This can be used to use setting efa does not yet cover, like
--post lineRestriction=400 to also show IC and ICE trains.
Note that --post will be overridden by the standard efa options, such as
--time
Print version information
0 Everything went well
1 Invalid arguments, see error message
2 Network error, unable to send request
3 efa.vrr.de did not return any parsable data
4 efa.vrr.de error: ambiguous input
5 efa.vrr.de error: no connections found
10 Unknown Travel::Routing::DE::VRR error
255 Other internal error
None.
This script requires perl 5.10 (or higher) with the following modules:
efa cannot handle Unicode in its arguments, use plain ASCII.
Copyright (C) 2009,2010 by Daniel Friesel <derf@derf.homelinux.org>
0. You just DO WHAT THE FUCK YOU WANT TO.