The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

SYNOPSIS

  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;
  }

DESCRIPTION

This method is available from Geo::Coder::Canada::error when the original geocoder.ca request returns an error.

ATTRIBUTES

code()

Returns an integer code representing the error.

description()

Return an error message string.

stno

Returns the suggested street number.

addresst

Returns the suggested street name.

city

Returns the suggested city name.

prov

Returns the suggested province name.

AUTHOR

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.

SEE ALSO

Geo::Coder::Canada

1 POD Error

The following errors were encountered while parsing the POD:

Around line 101:

You forgot a '=back' before '=head1'