Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (27 sloc) 747 Bytes
module Geokit
VERSION = '1.5.0'
# These defaults are used in Geokit::Mappable.distance_to and in acts_as_mappable
@@default_units = :miles
@@default_formula = :sphere
[:default_units, :default_formula].each do |sym|
class_eval <<-EOS, __FILE__, __LINE__
def self.#{sym}
if defined?(#{sym.to_s.upcase})
#{sym.to_s.upcase}
else
@@#{sym}
end
end
def self.#{sym}=(obj)
@@#{sym} = obj
end
EOS
end
end
path = File.expand_path(File.dirname(__FILE__))
$:.unshift path unless $:.include?(path)
require 'geokit/geocoders'
require 'geokit/mappable'
require 'geokit/cached'
# make old-style module name "GeoKit" equivalent to new-style "Geokit"
GeoKit=Geokit
Something went wrong with that request. Please try again.