NAME

OpenGbg::Service::TrafficCamera::CameraDevice - A traffi camera

SYNOPSIS

my $traffic_camera_service = OpenGbg->new->traffic_camera;
my $get_traffic_cameras = $traffic_camera_service->get_traffic_cameras;

my $camera_devices = $get_traffic_cameras->camera_devices;
my $camera_device = $camera_devices->get_by_index(0)
print $camera_device->to_text;

ATTRIBUTES

id

Integer. The traffic camera id.

description

String. The description/location of the traffic camera.

storage_duration_minutes

Integer. How long is the image saved. There is however currently no service to get any image but the latest.

capture_interval_seconds

Integer. How long between captures.

model

String. The brand and/or model of the traffic camera.

METHODS

to_text()

Returns a string with the traffic camera data in a table.

AUTHOR

Erik Carlsson <info@code301.com>

COPYRIGHT

Copyright 2014 - Erik Carlsson

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.