This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 7327abf2f63666c0bdf9dd9853ae9a30aba4f4f5
tree 6cdabf9411b4f65430c60a618bd65296724d0bb2
parent 042b6361fc9c2a92ee5623e2e38e347a6441da81
tree 6cdabf9411b4f65430c60a618bd65296724d0bb2
parent 042b6361fc9c2a92ee5623e2e38e347a6441da81
through /
| name | age | message | |
|---|---|---|---|
| |
README.textile | Sat Oct 11 15:24:25 -0700 2008 | |
| |
data/ | Sat Oct 11 15:20:34 -0700 2008 | |
| |
locate.rb | Sat Oct 11 15:12:17 -0700 2008 | |
| |
plugins/ | Sun Oct 12 04:13:16 -0700 2008 | |
| |
spec/ | Sat Oct 11 15:12:17 -0700 2008 |
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
- Install libgeoip (sudo port install libgeoip)
- Install the ruby binding (sudo gem install geoip_city)
- Get the data: (curl -O http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz)
- Get some time zone mapping data (curl http://www.maxmind.com/timezone.txt > data/timezone.txt)







