NAME

OpenGbg::Service::TrafficCamera::CameraDevice - Data about a traffic camera

VERSION

Version 0.1404, released 2018-05-19.

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.

lat

Decimal. The latitude location of the camera.

long

Decimal. The longitude location of the camera.

METHODS

get_latest_image

Returns the latest available image from the camera.

to_text()

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

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.