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

db-wagenreihung - Interface to Deutsche Bahn carriage formation API

SYNOPSIS

db-wagenreihung station train-number

VERSION

version 0.14

This is beta software: API and output format may change without notice.

DESCRIPTION

db-wagenreihung shows the carriage formation (also known as coach sequence) of train train-number at station station (must be a name or DS100 code) as reported by the Deutsche Bahn Wagenreihung API. As of April 2024, it has mature support for long-distance (IC/EC/ICE) trains and a growing number of regional transport providers that also offer mostly correct carriage formation data.

It is not possible to request the carriage formation at a train's terminus station. This is a known limitation.

The departure of train-number must be in the time range between now and two hours in the future.

EXAMPLES

db-wagenreihung 'Essen Hbf' 723

Show carriage formation of ICE 723 at Essen Hbf

db-wagenreihung TS 3259

Show carriage formation of IRE 3259 at Stuttgart Hbf

DEPENDENCIES

  • JSON(3pm)

  • LWP::UserAgent(3pm)

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

AUTHOR

Copyright (C) 2018-2024 by Birte Kristina Friesel <derf@finalrewind.org>

LICENSE

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