The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Travel::Status::DE::MvgMainz - unofficial MVG departure monitor.

SYNOPSIS

    use Travel::Status::DE::MvgMainz;

    my $status = Travel::Status::DE::MvgMainz->new(
        stop => 'Hauptbahnhof West'
    );

    for my $d ($status->results) {
        printf(
            "%s  %-5s %25s (in %d min)\n",
            $d->time, $d->line, $d->destination, $d->countdown
        );
    }

VERSION

version 2.01

DESCRIPTION

Travel::Status::DE::MvgMainz is an unofficial interface to the MVG Mainz realtime departure monitor.

METHODS

my $status = Travel::Status::DE::MvgMainz->new(%opt)

Requests the departures as specified by opts and returns a new Travel::Status::DE::MvgMainz object.

Calls Travel::Status::DE::URA->new with the appropriate ura_base and ura_version parameters. All opts are passed on.

See Travel::Status::DE::URA(3pm) for the other methods.

DIAGNOSTICS

None.

DEPENDENCIES

  • Travel::Status::DE::URA(3pm)

BUGS AND LIMITATIONS

Many.

SEE ALSO

MvgMainz-m(1), Travel::Status::DE::URA(3pm).

AUTHOR

Copyright (C) 2016 by Moritz Schlarb <moschlar@metalabs.de>

LICENSE

This module is licensed under the same terms as Perl itself.