API-DeutscheBahn-Fahrplan

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN


# DESCRIPTION

API::DeutscheBahn::Fahrplan provides a simple interface to the Deutsche Bahn Fahrplan
API. See [https://developer.deutschebahn.com/](https://developer.deutschebahn.com/) for further information.

# ATTRIBUTES

- fahrplan\_free\_url

    URL endpoint for DB Fahrplan free version. Defaults to _https://api.deutschebahn.com/freeplan/v1_.

- fahrplan\_plus\_url

    URL endpoint for DB Fahrplan subscribed version. Defaults to _https://api.deutschebahn.com/fahrplan-plus/v1_.

- access\_token

    Access token to sign requests. If provided the client will use the `fahrplan_plus_url` endpoint.

# METHODS

## location

    $fahrplan->location( name => 'Berlin' );

Fetch information about locations matching the given name or name fragment.

## arrival\_board

lib/API/DeutscheBahn/Fahrplan.pm  view on Meta::CPAN


API::DeutscheBahn::Fahrplan provides a simple interface to the Deutsche Bahn Fahrplan
API. See L<https://developer.deutschebahn.com/> for further information.

=head1 ATTRIBUTES

=over

=item fahrplan_free_url

URL endpoint for DB Fahrplan free version. Defaults to I<https://api.deutschebahn.com/freeplan/v1>.

=item fahrplan_plus_url

URL endpoint for DB Fahrplan subscribed version. Defaults to I<https://api.deutschebahn.com/fahrplan-plus/v1>.

=item access_token

Access token to sign requests. If provided the client will use the C<fahrplan_plus_url> endpoint.

=back

=cut

has 'fahrplan_free_url' => (
    is      => 'ro',
    isa     => 'Str',
    default => 'https://api.deutschebahn.com/freeplan/v1',
);



( run in 0.280 second using v1.01-cache-2.11-cpan-27979f6cc8f )