Sha256: 451f4fd5aa5147eaf570092cd93d7bdd617d3e019a14a9ccc9e5c40c96d69cb7

Contents?: true

Size: 504 Bytes

Versions: 9

Compression:

Stored size: 504 Bytes

Contents

# encoding: UTF-8
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

9 entries across 9 versions & 1 rubygems

Version Path
graticule-2.7.2 lib/graticule/geocoder.rb
graticule-2.7.1 lib/graticule/geocoder.rb
graticule-2.7.0 lib/graticule/geocoder.rb
graticule-2.6.0 lib/graticule/geocoder.rb
graticule-2.5.0 lib/graticule/geocoder.rb
graticule-2.4.0 lib/graticule/geocoder.rb
graticule-2.3.0 lib/graticule/geocoder.rb
graticule-2.2.0 lib/graticule/geocoder.rb
graticule-2.1.0 lib/graticule/geocoder.rb