OpenGbg::Service::TrafficCamera - Entry point to the Traffic Camera service
Version 0.1404, released 2018-05-19.
my $traffic_camera_service = OpenGbg->new->traffic_camera; my $response = $traffic_camera_service->get_traffic_cameras; print $response->camera_devices->get_by_index(0)->to_text;
Traffic cameras all around Gothenburg captures a lot of images (usually once per minute). This service gives information about the cameras themselves, as well as a way to get the latest captured image from all cameras.
Official documentation
See OpenGbg for general information.
Get information on the traffic cameras.
Returns a GetTrafficCameras object.
Returns the CameraDevice object for the camera with id $id. Undef if no camera has that id.
$id
Get the latest image from the camera with id $id.
Returns a GetCameraImage 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.