Re: How to determine web user's location

2010-09-20 Thread Ask Bjørn Hansen
On 9/15/10 14:37, Mimi Cafe wrote: I just found few cpan modules (Geo::IP2Location, Geo::IP) which both use flat file databases to lookup country an IP is originating from, but I yet to understand how the originating city can be determined. Any other suggestions? Maxmind (who makes the databas

Re: How to determine web user's location

2010-09-15 Thread Jon Hermansen
Hi Mimi,  Determining a city from an IP address is documented on the Geo::IP2Location CPAN page: > use Geo::IP2Location; > my $obj = > Geo::IP2Location->open("IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-ISP-DOMAIN.BIN"); > my $city = $obj->get_city("20.11.187.239"); http://search.cpan.org/