The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OpenGbg::Service::TrafficCamera - Entry point to the Traffic Camera service

VERSION

Version 0.1404, released 2018-05-19.

SYNOPSIS

    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;

DESCRIPTION

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.

METHODS

get_traffic_cameras

Get information on the traffic cameras.

Returns a GetTrafficCameras object.

get_traffic_camera($camera_id)

Returns the CameraDevice object for the camera with id $id. Undef if no camera has that id.

get_camera_image($camera_id)

Get the latest image from the camera with id $id.

Returns a GetCameraImage object.

SOURCE

https://github.com/Csson/p5-OpenGbg

HOMEPAGE

https://metacpan.org/release/OpenGbg

AUTHOR

Erik Carlsson <info@code301.com>

COPYRIGHT AND LICENSE

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.