Posted on March 28, 2008 at 3:59 pm
Geolocate yourself with Graticule
Graticule is an interesting piece of Gem that puts together a bunch of geocoding services available over the Internets in one concise and easy to use package. Using it is a snap:
require ‘graticule’
coder = Graticule.service(:yahoo).new “api_key”
locale = coder.locate “New York, NY 10003″
=> #<Graticule::Location:0×2c1dc14 @latitude=40.73236, @precision=:city, @locality=”Manhattan”, @country=”US”, @postal_code=”10003″, @longitude=-73.989089, @warning=”The exact location could not be [...]



















