Skip Menu |

This queue is for tickets about the Geo-Coder-Cloudmade CPAN distribution.

Report information
The Basics
Id: 88199
Status: resolved
Priority: 0/
Queue: Geo-Coder-Cloudmade

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.2
Fixed in: (no value)



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
Both hash and hash ref are supported in the newly released 0.5 update. On Wed Aug 28 04:50:29 2013, SREZIC wrote: Show quoted text
> 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