Top «Prev(2009-07-08) Latest Next(2009-07-27)» Edit

pterjan's diary


2009-07-17

  Basic geocoding in Ruby

For my personal need in a simple script I had written a small ruby class using Google's HTTP geocoding service.

It is ugly (writes cache in current folder) but works fine, so I decided today to release it. Here it is.

Ne suis-je pas vivant ?

Update: As Pierre-Luc pointed out, I forgot to mention that this can only be used to populate a google map, as per the Google terms of service.

Today's TSUKKOMI(Total: 4) [Add a TSUKKOMI]
  Pierre-Luc Beaudoin (2009-07-18 11:04)

I don't want to be a party pooper but AFAIK, the terms of service of google's geocoding say that you can only use it if you are displaying the results on a Google Map. Geoclue has geocoding using both open (geonames) and closed source services (Yahoo) btw.

  Pascal (2009-07-18 11:10)

Yes I'm using it to populate a google map, but I forgot to say it when posting.<br>Geoclue is not available on the webserver where I run this, and has no ruby binding.

  Guyou (2009-07-22 10:40)

Did you give an eye to OpenStreetMap? It proposes geocoding in two flavour:<br>- OpenStreetMap name finder: http://gazetteer.openstreetmap.org/namefinder/<br>- Geonames: http://www.geonames.org/

  Pascal (2009-07-22 10:44)

Well OpenStreetMap name finder does not seem to work (it does not know about my street while I had added all the area in OpenStreetMap last year...<br>Geonames does not know about my address either, so it gives me yahoo result for another number in the street...


2004|06|07|08|09|11|
2005|01|02|05|06|07|08|09|10|11|12|
2006|01|02|03|06|08|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|12|
2011|02|04|06|
2012|01|05|11|
2013|01|02|04|06|
2014|02|
2015|06|
2017|05|07|12|