lib/graticule/geocoder.rb in graticule-0.1.1 vs lib/graticule/geocoder.rb in graticule-0.1.2
- old
+ new
@@ -1,7 +1,13 @@
module Graticule
+ # Get a geocoder for the given service
+ #
+ # geocoder = Graticule.service(:google).new "api_key"
+ #
+ # See the documentation for your specific geocoder for more information
+ #
def self.service(name)
self.const_get "#{name}_geocoder".camelize
end
# The Geocode class is the base class for all geocoder implementations. The
\ No newline at end of file