Method: YahooGeocoder#initialize
- Defined in:
- lib/kamelopard/geocode.rb
#initialize(key) ⇒ YahooGeocoder
Returns a new instance of YahooGeocoder.
111 112 113 114 115 116 117 |
# File 'lib/kamelopard/geocode.rb', line 111 def initialize(key) @api_key = key @proto = 'http' @host = 'where.yahooapis.com' @path = '/geocode' @params = { 'appid' => @api_key, 'flags' => 'J' } end |