Sha256: a7fd2c2c0d2c16694f55f6cd6fe3d2ab3faa81df71f49cd75435c212fc4aa055

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

require 'happymapper'

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)
    Geocoder.const_get name.to_s.camelize
  end
  
  # Base error class
  class Error < RuntimeError; end
  class CredentialsError < Error; end

  # Raised when you try to locate an invalid address.
  class AddressError < Error; end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
graticule-2.0.1 lib/graticule/geocoder.rb
graticule-2.0.0 lib/graticule/geocoder.rb
graticule-1.0.0.pre2 lib/graticule/geocoder.rb
graticule-1.0.0.pre lib/graticule/geocoder.rb