| Author: |
boz |
| Dated: |
Tuesday, August 01 2006 @ 12:03 PM EDT |
| Viewed: |
486 times |
|
I've been playing around with the Google Maps API lately.
So far I've created this thing which attempts to map users in an IRC (Internet Relay Chat) channel:
http://upperbound.com/maps/?channel=programmers
There are three main components to this.
The first component is a script run from my IRC client, Kvirc. I've added an option to the channel window that kicks off the process. The Kvirc script dumps the user information to a text file, and then kicks off another script that does the rest.
The second component is the script that is run from the Kvirc script. It reads the text file and then does the IP address location lookups, using the IP to location database at http://www.hostip.info. The database tries to determine the city that the IP is located in, and returns the lattitude and longitude if available. After the script does the lookup, it updates a database on this site.
The third component is the PHP page on the site that generates the actual map based on what is in the database.
|
|
 |
|