WWW::ErnestMarples - Interface to the ernestmarples.com UK postcode lookup API
This document describes WWW::ErnestMarples version 0.01
use WWW::ErnestMarples; my $em = WWW::ErnestMarples->new; my ( $lat, $lon ) = $em->lookup('CA9 3NT');
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
my $em = WWW::ErnestMarples->new( service => 'http://localhost/emtest.cgi' );
For normal use pass no args:
my $em = WWW::ErnestMarples->new;
Look up a UK postcode. The return value is a list containing latitude, longitude of the postcode.
my ( $lat, $lon ) = $em->lookup( $my_postcode );
Important: Given the inherent unreliability of using a service like this, it's probably sensible to let us know you're using it so we can hang on to your email and let you know if anything important happens. Hopefully the Royal Mail will be nice, and license us to use the postcode database. Then you'll be able to rely on us and this service will become a seamless and transparent part of the web's infrastructure, like it ought to be.
Visit the site for more information.
WWW::ErnestMarples requires no configuration files or environment variables.
Please report any bugs or feature requests to
email@example.com, or through the web interface at http://rt.cpan.org.
Copyright (c) 2009, Andy Armstrong
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.