Forum: Ruby on Rails Geolocation -- code for rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
8540479bbacb4ab1bc5f6c6e13f90094?d=identicon&s=25 Stephan Wehner (Guest)
on 2006-04-29 08:18
(Received via mailing list)
Hi there,

I've put code together for using the data under Rails. is a community-based project to geolocate IP addresses,
making the database freely available. This database allows to translate
IP addresses to city/country/longitude and latitude. It can be
downloaded from the website. They have PHP code so far to
make any use of it.

My code can be found under

To test directly go to

It's a simple start. If I get suggestions for changes I'll apply them
before sending the code over to I don't know how to get rid
of the %20, %2C etc. for some city names; these come with the database.

Please let me know.

See you

5b8e28dfc732a50566c077f212871ff6?d=identicon&s=25 Liang Gao (lgao)
on 2006-04-29 11:36
cool stuff.

I'v got an application error on your testing URL though.
8540479bbacb4ab1bc5f6c6e13f90094?d=identicon&s=25 Stephan Wehner (Guest)
on 2006-05-03 19:09
(Received via mailing list)
Thanks for all the test visits from all continents.

As a result I fixed a silly bug and updated the code at

Hopefully it's ok now.

A6389144749e04971d6531ff54138822?d=identicon&s=25 Ysrael Alberto Cárdenas Advíncula (Guest)
on 2006-05-03 19:09
(Received via mailing list)
it's a test :)

Ysrael Cárdenas Advíncula
Telef.: (511) 9722-0665
ICQ: 3084187

"Toda la materia más toda la gravedad en el universo es igual a cero.
eso, el universo pudo surgir de la nada, porque es, básicamente, nada"
This topic is locked and can not be replied to.