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
-
.first(address, key = nil) ⇒ Object
Search for the first address that matches a string.
-
.search(address, key = nil) ⇒ Object
Search for addresses that match a string.
-
.version ⇒ Object
The current version of the application.
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 |
.version ⇒ Object
The current version of the application
19 20 21 |
# File 'lib/geocoder.rb', line 19 def self.version "0.0.3" end |