Playing around with GD, PHP and Latitude/Longitude

A friend of mine asked whether or not I could create a service like MapLoco. They log the IP addresses of your visitors and create a nifty little map showing where they come from.

I told him that as long as I could get the latitude and longitude for a given IP address, I could very likely do it. Half an hour later, I had created this:

Map of where my visitors come from

That image should show your approximate location on a map of the world, as long as your IP address is in the database. The IP info was obtained from HostIP.info, so if it's wrong, blame them. :)

The rest is cake, as they say. Just a matter of aggregating the requesting IPs and tying them to unique IDs.

If I decide to actually build the thing and allow "outsiders" to use it, I'll follow this up with a link to the site.

 

Posted by Steve - 2008-04-11 09:44:22.


Comments:


Less than a day and a half from when my friend asked me about it, I have the tool running in beta and a website up for it. Check it out at VisitorMap.org.

 

(#45) Posted by Steve - Reply - 2008-04-12 11:44:39.


Add a comment:

Your name:
Your e-mail:
(optional; will never be sold)
Hide e-mail address? Yes     No

Latest entries:

View all articles...


Copyright © 2009, Steve Thomas. All rights reserved.

Free Visitor Maps at VisitorMap.org
Get your own visitor map!

Valid HTML 4.01!

website monitoring service