NAME

OpenGbg::Service::AirQuality - Entry point to the Air Quality service

VERSION

Version 0.1404, released 2018-05-19.

SYNOPSIS

    my $service = OpenGbg->new->air_quality;
    my $response = $service->get_latest_measurement;

    print $response->measurement->to_text;

DESCRIPTION

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.

METHODS

get_latest_measurement

Returns a GetLatestMeasurement object.

get_measurements(%dates)

%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.

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.

Returns a GetMeasurements 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.