Michael Neumann
4/29/2005 9:06:00 AM
Am Friday 29 April 2005 06:14 schrieb Clifford Heath:
> Folk,
>
> The Ruby GEM for GeoIP has been updated (now v0.2.0) to support the
> GeoIPCity database. In the process, an incorrect translation from the
> C language original has been repaired, so the new Gem correctly
> identifies the database version.
>
> Note: this is a pure Ruby GeoIP, unrelated to Sean Chittendon's
> wrapper around the official C api.
>
> Usage:
>
> require 'rubygems'
> require_gem 'geoip'
>
> p GeoIP.new('GeoIPCity.dat').city('lazaridis.com')
>
> -> ["lazaridis.com", "212.227.109.28", "DE", "DEU", "Germany", "EU",
> "01", "Karlsruhe", "", 49.0047, 8.38579999999999]
This is because here in Karlsruhe is one of the biggest (the biggest?) hosting
provider of Germany.
> Please don't use this latitude/longitude for targeting, as he
> is/was recently actually in Northern Greece :-).
Yeah, please at least leave my university intact ;-)
Regards,
Michael