NAME
OpenGbg::Service::AirQuality - Data on air quality
SYNOPSIS
my $aq = OpenGbg->new->air_quality;
my $service = $aq->get_latest_measurement;
print $service->measurement->to_text;
DESCRIPTION
Gothenburg publishes hourly readings on weather and air quality. The service publishes two methods to get this data.
See OpenGbg for general information.
METHODS
get_latest_measurement
Returns a GetLatestMeasurement.
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: 2014-12-24. If start is 2014-10-15 and end is 2014-10-25 the all measurements between 2014-10-15 00:00:00 and 2014-10-25 00:00:00 will be returned.
Returns a GetMeasurements object.
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.