Class: Geocoder::Lookup::SmartyStreets
- Inherits:
-
Base
- Object
- Base
- Geocoder::Lookup::SmartyStreets
show all
- Defined in:
- lib/geocoder/lookups/smarty_streets.rb
Instance Method Summary
collapse
Methods inherited from Base
#cache, #handle, #initialize, #map_link_url, #search
Instance Method Details
#name ⇒ Object
6
7
8
|
# File 'lib/geocoder/lookups/smarty_streets.rb', line 6
def name
"SmartyStreets"
end
|
#query_url(query) ⇒ Object
14
15
16
17
|
# File 'lib/geocoder/lookups/smarty_streets.rb', line 14
def query_url(query)
path = zipcode_only?(query) ? "zipcode" : "street-address"
"#{protocol}://api.smartystreets.com/#{path}?#{url_query_string(query)}"
end
|
#required_api_key_parts ⇒ Object
10
11
12
|
# File 'lib/geocoder/lookups/smarty_streets.rb', line 10
def required_api_key_parts
%w(auti-id auth-token)
end
|