WebService::Nestoria::Search::MetadataResponse - Container object for the result of a metadata query to the Nestoria Search API.
This package is used by WebService::Nestoria::Search and a WebService::Nestoria::Search::MetadataResponse object should never need to be explicitly created by the user.
Returns a reference to a hash that contains exactly what the response from the Nestoria API gave, converted from JSON into a hashref with JSON::from_json()
Returns a reference to a hash that maps metadata names to the statistics associated with it.
Returns the average for properties which match the number of bedrooms, property type and listing type, for the given month.
my %options = ( # required listing_type => 'rent', range => 'monthly', # 'monthly' ('quarterly' is deprecated, and has no data.) # optional depending on 'range' year => 2007, # 4 digit date month => 'January', # eg. '1', 'Jan' or 'January' # optional num_beds => 3 # integer per_sqm => 1, # price returned per square metre ); my $average_price = $metadata->get_average_price(%options);
Rent prices are monthly. Prices for the UK are in GBP. Prices for Spain, Italy and Germany are in Euros. The earliest date available is October 2007.
If you leave out the year and month parameters it will take the most recent available.
Copyright (C) 2009 Lokku Ltd.
Alex Balhatchet (alex@lokku.com)
Patches supplied by Yoav Felberbaum and Alistair Francis.
To install WebService::Nestoria::Search, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Nestoria::Search
CPAN shell
perl -MCPAN -e shell install WebService::Nestoria::Search
For more information on module installation, please visit the detailed CPAN module installation guide.