Jeff Anderson > Geo-Coder-Canada > Geo::Coder::Canada::Error

Download:
Geo-Coder-Canada-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

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

syntax highlighting: