in reply to Getting longitude and latitude from an IP address

Hi All,

I tried the original version by Kickstart but got no output. Just "Lat: Long:" with no values.
I got no errors when running the code in the perl section of my webpage.
I used my Ip address as a test.
Any ideas?

Hacker1
  • Comment on Re: Getting longitude and latitude from an IP address

Replies are listed 'Best First'.
Re^2: Getting longitude and latitude from an IP address
by afoken (Chancellor) on Dec 12, 2011 at 11:24 UTC

    What makes you think IP addresses have a fixed location? And what makes you think the "location" of the IP address has any relation to the location of the user?

    One of my former employers had a central and mandatory proxy at the headquarter, so each and every user accessing the internet appeared to be located at the headquarter, even if s(he) was several hundred km away.

    At my current employer, I have to live with a partly broken proxy that I sometimes bypass using an SSH tunnel to a different computer. Whenever I do so, my "location" according to my current IP address jumps into a completely different state more than 30 km away, while I do not move a single millimeter.

    Things become even more funny when you use a mobile computer with an UMTS or GPRS card.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^2: Getting longitude and latitude from an IP address
by Anonymous Monk on Dec 12, 2011 at 04:00 UTC

    Hi. I have several notes

    • Kickstart hasn't visited in 44 weeks, the post you replied to is 10 years old, and its real easy to miss a reply like yours
    • AFAIK, the original by kickstart as posted is broken. (Ovid) Re: Getting longitude and latitude from an IP address would be worth trying...
    • ... but the url in question has been gone for a long time, but even in 2002, there was a notice that this database was unmaintained/unreliable
    • Like mentioned in Mapping visitors to my site, you should go with Geo::IP cpan Geo::IP