use Geo::Coder::Canada; my $g = Geo::Coder::Canada->new; $g->city('X'); $g->postal('invalid postal code'); unless($g->goecode) { # Get the Error object... my $error = $g->error; my $error_msg = $error->description; my $error_code = $error->code; my $suggested_street = $error->addresst; }
This method is available from Geo::Coder::Canada::error when the original geocoder.ca request returns an error.
Returns an integer code representing the error.
Return an error message string.
Returns the suggested street number.
Returns the suggested street name.
Returns the suggested city name.
Returns the suggested province name.
Jeff Anderson <jeff@pvrcanada.com>
Copyright (c) 2006 Jeff Anderson. All rights reserved. This program is free sofware; you can redistribute it and/or modify it under the same terms as Perl itself.
Geo::Coder::Canada
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Geo::Coder::Canada, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Coder::Canada
CPAN shell
perl -MCPAN -e shell install Geo::Coder::Canada
For more information on module installation, please visit the detailed CPAN module installation guide.