Class GoogleGeocode
In: lib/google_geocode.rb
Parent: RCRest

Library for looking up coordinates with Google‘s Geocoding API.

www.google.com/apis/maps/documentation/#Geocoding_HTTP_Request

Methods

Classes and Modules

Class GoogleGeocode::AddressError
Class GoogleGeocode::Error
Class GoogleGeocode::KeyError
Class GoogleGeocode::Location

Constants

VERSION = '1.2.1'   This is the version you are running.
Location = Struct.new :address, :latitude, :longitude   Location struct

Public Class methods

Creates a new GoogleGeocode that will use Google Maps API key key. You can sign up for an API key here:

www.google.com/apis/maps/signup.html

Public Instance methods

Extracts and raises an error from xml, if any.

Locates address returning a Location struct.

Creates a URL from the Hash params. Automatically adds the key and sets the output type to ‘xml’.

Extracts a Location from xml.

[Validate]