Weather::OpenWeatherMap::Request - Weather lookup request superclass
# Normally generated via Weather::OpenWeatherMap
# (when a request is made)
This is the parent class for request objects generated by Weather::OpenWeatherMap.
The "SEE ALSO" section links known subclasses.
The OpenWeatherMap API key attached to this request.
The location string, used to (lazily) generate the "http_request" and "url" attributes.
Locations can be specified in various ways.
Strings such as 'City, State' or 'City, Country' will be parsed appropriately.
A numeric location is taken to be an OpenWeatherMap city code.
A string in the form of 'lat X, long Y' or 'latitude X, longitude Y' is also accepted.
An (optional) arbitrary scalar attached to the request object at construction time.
The (generated) HTTP::Request object used to request the weather data.
The time() the request object was created.
The (generated) OpenWeatherMap URL.
Factory method; returns a new object belonging to the appropriate subclass:
my $request = Weather::OpenWeatherMap::Request->new_for(
api_key => $api_key,
location => $location,
tag => $tag,
Jon Portnoy <email@example.com>
To install Weather::OpenWeatherMap, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.