OpenGbg::Service::AirQuality - Entry point to the Air Quality service
Version 0.1404, released 2018-05-19.
my $service = OpenGbg->new->air_quality; my $response = $service->get_latest_measurement; print $response->measurement->to_text;
Gothenburg publishes hourly readings on weather and air quality. The service publishes two methods to get this data.
Official documentation
See OpenGbg for general information.
Returns a GetLatestMeasurement object.
%dates is a hash that filters returned measurements. Its keys are start and end, both are expected to be in the iso-8601 representation: yyyy-mm-dd.
%dates
start
end
yyyy-mm-dd
Given start => '2014-10-15', end => '2014-10-25' then all measurements between 2014-10-15 00:00:00 and 2014-10-25 00:00:00 will be returned.
start => '2014-10-15', end => '2014-10-25'
Returns a GetMeasurements 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.