Subject: | geocode call without hashref? |
Geo::Coder::Cloudmade is documented to have the geocode() arguments in a hashref:
my $location = $geocoder->geocode( { location => '1370 Willow Road, 2nd Floor, Menlo Park, CA 94025 USA' } );
However, most other geo coders (Google, Bing ...) use just named parameters without a hashref:
$location = $geocoder->geocode(location => $location);
Maybe it would be best to support both styles: hashref for backward compatibility, named parameters for compatibility with other geo coders.
Regards,
Slaven