maheshkumar has asked for the wisdom of the Perl Monks concerning the following question:

Any idea how can I use WWW::MapBlast module, not really sure what should be the correct format in the code that I am writing. Following is just a test code I am using from the documentation of CPAN

use WWW::MapBlast; #This modules takes in the country and gives the longitude and latitud +e of the that country. my ($lat, $lon) = WWW::MapBlast::latlon('United Kingdom', 'E14NS'); print ("$lat - $lon \n");

Replies are listed 'Best First'.
Re: WWW::MapBlast module
by marto (Cardinal) on Jul 18, 2012 at 14:53 UTC

    This is hardly surprising since the service was decommissioned a decade ago. Perhaps one of the Geo::Coder modules could be used as a replacement.

Re: WWW::MapBlast module
by tobyink (Canon) on Jul 18, 2012 at 14:43 UTC

      Any ideas on how can I find the longitiude and latitude from the IPs that I have?

        E14NS is a postcode, not an IP address. If you want to get longitude and latitude from an IP address, you should be aware that in the general case it cannot be done. When you get assigned a block of IP addresses, you are not compelled to tell anybody the geographic location from which they will be used; whatsmore proxies can hide the true IP address of the end-user.

        That said, through a combination of techniques, MaxMind's GeoIP database does a pretty good job of mapping IP addresses to locations that works in a large majority of cases.

        perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
Re: WWW::MapBlast module
by toolic (Bishop) on Jul 18, 2012 at 14:48 UTC
    Submit a bug report. This will let the author, as well as everyone who is thinking of using the module, know there is a problem.