.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "EFA 1p" .TH EFA 1p "2017-07-22" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" efa \- Command line client for EFA\-based public transit routing services .SH "SYNOPSIS" .IX Header "SYNOPSIS" .IP "\fBefa\fR \fB\-\-from\fR \fIcity\fR \fIstop\fR \fB\-\-to\fR \fIcity\fR \fIstop\fR [ \fIadditional options\fR ]" 4 .IX Item "efa --from city stop --to city stop [ additional options ]" .PD 0 .IP "\fBefa\fR [ \fIoptions\fR ] \fIfrom-city\fR \fIfrom-stop\fR [ \fIvia-city\fR \fIvia-stop\fR ] \fIto-city\fR \fIto-stop\fR" 4 .IX Item "efa [ options ] from-city from-stop [ via-city via-stop ] to-city to-stop" .PD .SH "VERSION" .IX Header "VERSION" version 2.16 .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBefa\fR is a command line client for EFA-based public transit routing interfaces, e.g. . \fBefa\fR requests connections between two points and displays the results. .PP By default, the \s-1EFA\s0 service at (operated by Verkehrsverbund Rhein-Ruhr) is used, which supports most places in Germany. A list of all supported \s-1EFA\s0 instances can be retrieved with \fB\-l\fR and a custom instance can be selected using \fB\-s\fR \fIservice\fR or \fB\-u\fR \fIurl\fR. It is also possible to probe all known \s-1EFA\s0 services for a specific connection using the \&\fB\-A\fR and \fB\-D\fR options. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-\-from\fR \fIcity\fR \fIstop\fR" 4 .IX Item "--from city stop" Departure place .IP "\fB\-\-to\fR \fIcity\fR \fIstop\fR" 4 .IX Item "--to city stop" Arrival place .IP "\fB\-\-via\fR \fIcity\fR \fIstop\fR" 4 .IX Item "--via city stop" Travel via this place .Sp In all cases, if you want \fIstop\fR to be an address or \*(L"point of interest\*(R", you can set it to 'addr:something' or 'poi:something'. .IP "\fB\-a\fR|\fB\-\-arrive\fR \fIhh\fR:\fImm\fR" 4 .IX Item "-a|--arrive hh:mm" Journey end time (overrides \-\-time/\-\-depart) .IP "\fB\-A\fR|\fB\-\-auto\-url\fR|\fB\-\-discover\-and\-print\fR" 4 .IX Item "-A|--auto-url|--discover-and-print" Probe all known \s-1EFA\s0 entry points for the specified connection. Print the first result which was not an error. .Sp Note that this may take a while and will not necessarily return the best result. Also, using this option by default is not recommended, as it puts \&\s-1EFA\s0 services under considerable additional load. .IP "\fB\-b\fR|\fB\-\-bike\fR" 4 .IX Item "-b|--bike" Request connections allowing the passenger to take a bike with them. Note that this may cause \fBefa\fR to display no routes at all \*(-- In that case, the backend was unable to find such connections or didn't know about their bike-support. .IP "\fB\-B\fR|\fB\-\-bike\-info\fR" 4 .IX Item "-B|--bike-info" Show information about bike support, but do not select routes based on it. In essence, this option simply changes the \fB\-\-ignore\-info\fR default. It is useful when \fB\-\-bike\fR did not return any routes even though most of the route has bike support. .IP "\fB\-d\fR|\fB\-\-date\fR \fIdd\fR.\fImm\fR.[\fIyyyy\fR]" 4 .IX Item "-d|--date dd.mm.[yyyy]" Journey date .IP "\fB\-D\fR|\fB\-\-discover\fR" 4 .IX Item "-D|--discover" Probe all known \s-1EFA\s0 entry points for the specified connection. No routes are returned in this case. Instead, \fBefa\fR will print the URLs and names of all entry points which did not return an error. .IP "\fB\-u\fR|\fB\-\-efa\-url\fR \fIurl\fR" 4 .IX Item "-u|--efa-url url" \&\s-1URL\s0 to the \s-1EFA\s0 entry point, defaults to . Depending on your location, some \&\fIurl\fRs may contain more specific data than others. See \&\fITravel::Routing::DE::EFA\fR\|(3pm) and the \fB\-l\fR option for alternatives. .IP "\fB\-e\fR|\fB\-\-exclude\fR \fItransports\fR" 4 .IX Item "-e|--exclude transports" Exclude \fItransports\fR (comma separated list). .Sp Possible transports: zug, s\-bahn, u\-bahn, stadtbahn, tram, stadtbus, regionalbus, schnellbus, seilbahn, schiff, ast, sonstige .IP "\fB\-E\fR|\fB\-\-extended\-info\fR" 4 .IX Item "-E|--extended-info" Display more than just the basic route information. At the moment, the following is displayed (if available): .RS 4 .IP "\(bu" 4 Route duration .IP "\(bu" 4 Ticket fare .IP "\(bu" 4 transfer duration and elevation changes (via stairs / escalators) at each stop .RE .RS 4 .RE .IP "\fB\-f\fR|\fB\-\-full\-route\fR" 4 .IX Item "-f|--full-route" Display intermediate stops (with time and platform) of each train. Note that these are not always available. .IP "\fB\-I\fR|\fB\-\-ignore\-info\fR [ \fIregex\fR ]" 4 .IX Item "-I|--ignore-info [ regex ]" Ignore additional information matching \fIregex\fR (default: /Fahrradmitnahme|Einstiegshilfe/) .Sp If \fIregex\fR is not supplied, removes the default regex (\-> nothing will be ignored) .IP "\fB\-i\fR|\fB\-\-include\fR \fItype\fR" 4 .IX Item "-i|--include type" Include connections using trains of type \fItype\fR, where \fItype\fR may be: .RS 4 .IP "\(bu" 4 local (default) .Sp only take local trains (\*(L"Verbund\-/Nahverkehrslinien\*(R"). Slow, but the cheapest method if you're not traveling long distance .IP "\(bu" 4 ic .Sp Local trains + \s-1IC\s0 .IP "\(bu" 4 ice .Sp All trains (local + \s-1IC + ICE\s0) .RE .RS 4 .RE .IP "\fB\-l\fR|\fB\-\-list\fR" 4 .IX Item "-l|--list" List supported \s-1EFA\s0 services wit their URLs (see \fB\-u\fR) and abbreviations (see \fB\-s\fR). .IP "\fB\-M\fR|\fB\-\-maps\fR" 4 .IX Item "-M|--maps" Output links to maps of transfer paths and transfer stations where available. .IP "\fB\-m\fR|\fB\-\-max\-change\fR \fInumber\fR" 4 .IX Item "-m|--max-change number" Print connections with at most \fInumber\fR interchanges .IP "\fB\-n\fR|\fB\-\-num\-connections\fR \fInumber\fR" 4 .IX Item "-n|--num-connections number" Return up to \fInumber\fR connections. If unset, the default of the respective \&\s-1EFA\s0 server is used (usually 4 or 5). .IP "\fB\-P\fR|\fB\-\-prefer\fR \fItype\fR" 4 .IX Item "-P|--prefer type" Prefer connections of \fItype\fR: .RS 4 .IP "\(bu" 4 speed (default) .Sp The faster, the better .IP "\(bu" 4 nowait .Sp Prefer connections with less interchanges .IP "\(bu" 4 nowalk .Sp Prefer connections with less walking (at interchanges) .RE .RS 4 .RE .IP "\fB\-p\fR|\fB\-\-proximity\fR [\fIminutes\fR]" 4 .IX Item "-p|--proximity [minutes]" Take stops close to the stop/start into account. By default, up to 10 minutes of walking to/from the route's first/last stop is considered acceptable. You can specify \fIminutes\fR to use a custom value. .IP "\fB\-s\fR|\fB\-\-service\fR \fIname\fR" 4 .IX Item "-s|--service name" Shortname of the \s-1EFA\s0 entry point. See \fITravel::Routing::DE::EFA\fR\|(3pm) and the \fB\-l\fR option for a list of services. .IP "\fB\-t\fR|\fB\-\-time\fR|\fB\-\-depart\fR \fIhh\fR:\fImm\fR" 4 .IX Item "-t|--time|--depart hh:mm" Journey start time .IP "\fB\-\-timeout\fR \fIseconds\fR" 4 .IX Item "--timeout seconds" Set timeout for \s-1HTTP\s0 requests. Default: 60 seconds. .IP "\fB\-v\fR|\fB\-\-version\fR" 4 .IX Item "-v|--version" Print version information .IP "\fB\-w\fR|\fB\-\-walk\-speed\fR \fIspeed\fR" 4 .IX Item "-w|--walk-speed speed" Set your walking speed to \fIspeed\fR. Accepted values: normal (default), fast, slow .IP "\fB\-x\fR|\fB\-\-accessibility\fR \fItypes\fR" 4 .IX Item "-x|--accessibility types" Request connections satisfying all of the specified accessibility \fItypes\fR (comma-separated list, option may be repeated). Please note that this may cause the backend to return no results at all, either because no such connection exists or because the required lines do not have the correct accessibility attributes set. .Sp The following \fItypes\fR are supported: .RS 4 .IP "e / no-escalators" 4 .IX Item "e / no-escalators" Transfers must be possible without taking an escalator. .IP "E / no-elevators" 4 .IX Item "E / no-elevators" Transfers must be possible without using an elevator. .IP "i / info" 4 .IX Item "i / info" Does not restrict the requested connections. However, this option causes \&\fBefa\fR to display additional accessibility information for each route part (where available). When \fB\-x w\fR or \fB\-x l\fR do not return any connections, using \fB\-x i\fR might be more helpful (though it cannot guarantee that any of the results satisfy the respective type). .IP "l / nf / low-platform" 4 .IX Item "l / nf / low-platform" All vehicles must be low-platform (\*(L"Niederflur\*(R"). .IP "s / no-stairs" 4 .IX Item "s / no-stairs" Transfers must be possible without stairs (e.g. via escalators/elevators or ramps). .IP "w / wheelchair" 4 .IX Item "w / wheelchair" All vehicles must be wheelchair accessible. .RE .RS 4 .RE .SH "EXIT STATUS" .IX Header "EXIT STATUS" .Vb 8 \& 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::EFA error \& 255 Other internal error .Ve .SH "CONFIGURATION" .IX Header "CONFIGURATION" None. .SH "EXAMPLES" .IX Header "EXAMPLES" .IP "efa Do Hbf \s-1MH\s0 Hbf" 4 .IX Item "efa Do Hbf MH Hbf" Look up a connection from Dortmund (Do) Hbf to Mu\*:lheim (\s-1MH\s0) Hbf .IP "efa \-\-include ice Essen Hbf Hamburg Dammtor" 4 .IX Item "efa --include ice Essen Hbf Hamburg Dammtor" Look up a connection with long-distance trains .IP "efa \-\-arrive 18:00 \-e zug,s\-bahn \-M E Wickenburgstr D Oststr" 4 .IX Item "efa --arrive 18:00 -e zug,s-bahn -M E Wickenburgstr D Oststr" Look up a connection from Essen Wickenburgstr to Du\*:sseldorf Oststr. Do not use any trains, make sure to arrive around 18:00 and print links to maps of all interchange stations. .IP "efa \-s vvs Stuttgart Hbf Stuttgart Marienplatz" 4 .IX Item "efa -s vvs Stuttgart Hbf Stuttgart Marienplatz" Use the \s-1VVS \s0(Verkehrsverbund Stuttgart) \s-1EFA\s0 service to look up a connection. .SH "DEPENDENCIES" .IX Header "DEPENDENCIES" This script requires perl 5.10 (or higher) with the following modules: .IP "\(bu" 4 Class::Accessor .IP "\(bu" 4 Exception::Class .IP "\(bu" 4 LWP::UserAgent .IP "\(bu" 4 XML::LibXML .SH "BUGS AND LIMITATIONS" .IX Header "BUGS AND LIMITATIONS" The \s-1EFA\s0 backend is not able to calculate \*(L"two-way\*(R" routes, i.e. from \-> via \-> to routes with from == to. If from and to are the same stop, it doesn't even try to calculate a route (\*(L"we recommend walking instead\*(R"), if they are close to each other it may or may not work. Workaround: Request from \-> via using the normal four-argument efa invocation, read the time, use efa \-t time via via to to to request via \-> to. .SH "AUTHOR" .IX Header "AUTHOR" Copyright (C) 2009\-2015 by Daniel Friesel .SH "LICENSE" .IX Header "LICENSE" .Vb 1 \& 0. You just DO WHAT THE FUCK YOU WANT TO. .Ve