OpenGbg::Service::Bridge - Entry point to the Bridge service
Version 0.1403, released 2018-03-14.
my $bridge = OpenGbg->new->bridge; my $response = $bridge->get_is_currently_open; print $response->is_open ? 'It is open' : 'It is closed';
The Göta älvbron is a major bascule bridge in Gothenburg that opens more or less daily. This service publishes two methods with regards to its status.
Official documentation
See OpenGbg for general information.
This method is for checking if the bridge is currently open.
Returns a GetIsCurrentlyOpen object.
This method is for checking when it was opened in the past.
$startdate and $enddate are mandatory filtering arguments, both are expected to be in the iso-8601 representation: yyyy-mm-dd. The ending date is not inclusive.
$startdate
$enddate
yyyy-mm-dd
Returns a GetOpenedStatus object.
https://github.com/Csson/p5-OpenGbg
https://metacpan.org/release/OpenGbg
Erik Carlsson <info@code301.com>
This software is copyright (c) 2016 by Erik Carlsson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install OpenGbg, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenGbg
CPAN shell
perl -MCPAN -e shell install OpenGbg
For more information on module installation, please visit the detailed CPAN module installation guide.