Module: Geocoder

Defined in:
lib/geocoder.rb,
lib/geocoder/client.rb,
lib/geocoder/response.rb

Defined Under Namespace

Classes: Address, AddressError, Client, ConnectionError, Error, InvalidMapKeyError, MapKeyError, MissingAddressError, Response, ServerError, TooManyQueriesError, UnavailableAddressError, UnknownAddressError, UnknownError

Class Method Summary collapse

Class Method Details

.first(address, key = nil) ⇒ Object

Search for the first address that matches a string



35
36
37
# File 'lib/geocoder.rb', line 35

def self.first(address,key=nil)
  search(address,key).first
end

.search(address, key = nil) ⇒ Object

Search for addresses that match a string



27
28
29
# File 'lib/geocoder.rb', line 27

def self.search(address,key=nil)
  Client.new(key).search(address)
end

.versionObject

The current version of the application



19
20
21
# File 'lib/geocoder.rb', line 19

def self.version
  "0.0.3"
end