public
Description: Small geolocation web app
Homepage:
Clone URL: git://github.com/alexyoung/through.git
alexyoung (author)
Sun Oct 12 04:13:16 -0700 2008
commit  7327abf2f63666c0bdf9dd9853ae9a30aba4f4f5
tree    6cdabf9411b4f65430c60a618bd65296724d0bb2
parent  042b6361fc9c2a92ee5623e2e38e347a6441da81
name age message
file README.textile Sat Oct 11 15:24:25 -0700 2008 Added overview to readme [alexyoung]
directory data/ Sat Oct 11 15:20:34 -0700 2008 Added short README about expected data [alexyoung]
file locate.rb Sat Oct 11 15:12:17 -0700 2008 first commit [alexyoung]
directory plugins/ Sun Oct 12 04:13:16 -0700 2008 Typos and added timeout to Rails plugin [alexyoung]
directory spec/ Sat Oct 11 15:12:17 -0700 2008 first commit [alexyoung]
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)