Module: GeoKitGeocodersDefaults

Included in:
GeoKit::Geocoders
Defined in:
lib/location_geo_kit.rb

Instance Method Summary collapse

Instance Method Details

#provider_orderObject



26
27
28
# File 'lib/location_geo_kit.rb', line 26

def provider_order
  Radiant::Config["geokit.geocoders.provider_order"].split(" ").map { |s| s.to_sym }
end

#timeoutObject



29
30
31
32
# File 'lib/location_geo_kit.rb', line 29

def timeout
  val = Radiant::Config["geokit.geocoders.timeout"]
  val.strip.downcase.eql?("nil") ? nil : val.to_i
end

#timeout=(obj) ⇒ Object



33
34
35
# File 'lib/location_geo_kit.rb', line 33

def timeout=(obj)
  Radiant::Config["geokit.geocoders.timeout"] = obj
end