in reply to Re: WWW::MapBlast module
in thread WWW::MapBlast module

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

Replies are listed 'Best First'.
Re^3: WWW::MapBlast module
by marto (Cardinal) on Jul 18, 2012 at 17:55 UTC
Re^3: WWW::MapBlast module
by tobyink (Canon) on Jul 18, 2012 at 18:11 UTC

    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'