Jeff Anderson > Geo-Coder-Canada-0.01 > Geo::Coder::Canada::Response

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

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Geo::Coder::Canada::Response - Perl extension which contains the geocoder.ca response values.

SYNOPSIS ^

  use Geo::Coder::Canada;
  my $g = Geo::Coder::Canada->new;
  $g->latt(45.44);
  $g->long(-75.7);

  # Get the Geo::Coder::Canada::Response object...
  my $response = $g->reverse_coder;
  my $street = $response->staddress;
  my $city   = $response->city;

DESCRIPTION ^

This object contains the values returned by Geo::Coder::Canada as received from geocoder.ca

ATTRIBUTES ^

latt()

The latitude. A decimal number.

long()

The longitude. A decimal number.

id()

The Transaction ID. If you supplied one before within the request phase.

addresst()

The name of the street address

city()

The city of the result.

prov()

The province.

postal()

The postal code.

stnumber()

The street number.

staddress()

The street address.

distance()

The distance of the rsult location from the input location.

AUTHOR ^

Jeff Anderson <jeff@pvrcanada.com>

Copyright (c) 2006 Jeff Anderson. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Please see geocoder.ca for more information on the Canadian geocoder API and contact information for commercial applications.

SEE ALSO ^

Geo::Coder::Canada

syntax highlighting: