Module: Graticule

Defined in:
lib/graticule/geocoder/base.rb,
lib/graticule/cli.rb,
lib/graticule/version.rb,
lib/graticule/geocoder.rb,
lib/graticule/distance.rb,
lib/graticule/location.rb,
lib/graticule/core_ext.rb,
lib/graticule/precision.rb,
lib/graticule/geocoder/multi.rb,
lib/graticule/geocoder/bogus.rb,
lib/graticule/geocoder/yahoo.rb,
lib/graticule/geocoder/yandex.rb,
lib/graticule/geocoder/mapbox.rb,
lib/graticule/geocoder/google.rb,
lib/graticule/geocoder/host_ip.rb,
lib/graticule/distance/vincenty.rb,
lib/graticule/geocoder/mapquest.rb,
lib/graticule/geocoder/geonames.rb,
lib/graticule/geocoder/multimap.rb,
lib/graticule/distance/haversine.rb,
lib/graticule/distance/spherical.rb,
lib/graticule/geocoder/simple_geo.rb,
lib/graticule/geocoder/geocoder_ca.rb,
lib/graticule/geocoder/geocoder_us.rb,
lib/graticule/geocoder/freethepostcode.rb,
lib/graticule/geocoder/local_search_maps.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Distance, Geocoder, RadiansAndDegrees Classes: AddressError, Cli, CredentialsError, Error, Location, Precision

Constant Summary collapse

VERSION =
'2.4.0'

Class Method Summary collapse

Class Method Details

.service(name) ⇒ Object

Get a geocoder for the given service

geocoder = Graticule.service(:google).new "api_key"

See the documentation for your specific geocoder for more information


12
13
14
# File 'lib/graticule/geocoder.rb', line 12

def self.service(name)
  Geocoder.const_get name.to_s.camelize
end