public
Description: Small geolocation web app
Homepage:
Clone URL: git://github.com/alexyoung/through.git
alexyoung (author)
Sun Oct 12 04:04:58 -0700 2008
commit  042b6361fc9c2a92ee5623e2e38e347a6441da81
tree    ae40c0c9ee5112f638a9896fcbdd8912d2942156
parent  2b64e762f8f6deca91710a76ea1ccb4a658f7e43
name age message
file README.textile Loading commit data...
directory data/
file locate.rb
directory plugins/
directory spec/
README.textile

Overview

Through is a small geolocation web API. You can use it to:

  • Look up the location of an IP address
  • Find out the time zone for a location
  • Get responses in JSON
  • Centralise your geographical data so each of your apps don’t need to store it

I didn’t want to reproduce the same functionality across my web apps, so I thought an API would be a good solution.

Installation

  1. Install libgeoip (sudo port install libgeoip)
  2. Install the ruby binding (sudo gem install geoip_city)
  3. Get the data: (curl -O http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz)
  4. Get some time zone mapping data (curl http://www.maxmind.com/timezone.txt > data/timezone.txt)