WWW::ErnestMarples is a Perl interface to the ernestmarples.com UK postcode lookup API.
SYNOPSIS
use WWW::ErnestMarples;
my $em = WWW::ErnestMarples->new;
my ( $lat, $lon ) = $em->lookup('CA9 3NT');
INTERFACE
new
Create a new WWW::ErnestMarples. Accepts named arguments. The only argument currently supported is service which gives the base URL of the lookup service. Defaults to http://ernestmarples.com/.
my $em = WWW::ErnestMarples->new(
service => 'http://localhost/emtest.cgi'
);
For normal use pass no args:
my $em = WWW::ErnestMarples->new;
lookup
Look up a UK postcode. The return value is a list containing latitude, longitude of the postcode.
my ( $lat, $lon ) = $em->lookup( $my_postcode );
Product's homepage
Requirements:
· Perl