module Geokit::Geocoders
Contains a range of geocoders:
### “regular” address geocoders
-
Yahoo
Geocoder
- requires an API key. -
Geocoder.us - may require authentication if performing more than the free request limit.
-
Geocoder.ca - for Canada; may require authentication as well.
-
Geonames - a free geocoder
### address geocoders that also provide reverse geocoding
-
Google
Geocoder
- requires an API key.
### IP address geocoders
-
IP
Geocoder
- geocodes an IP address using hostip.info's web service. -
Geoplugin.net – another IP address geocoder
-
IP-API.com – another IP address geocoder
### The Multigeocoder
-
Multi
Geocoder
- provides failover for the physical location geocoders.
Some of these geocoders require configuration. You don't have to provide it here. See the README.
Constants
- OsmGeocoder
Open Street Map geocoder implementation.
Public Class Methods
# File lib/geokit/geocoders.rb, line 49 def self.__define_accessors class_variables.each do |v| sym = v.to_s.delete('@').to_sym next if self.respond_to? sym module_eval <<-EOS, __FILE__, __LINE__ def self.#{sym} value = if defined?(#{sym.to_s.upcase}) #{sym.to_s.upcase} else @@#{sym} end if value.is_a?(Hash) value = (self.domain.nil? ? nil : value[self.domain]) || value.values.first end value end def self.#{sym}=(obj) @@#{sym} = obj end EOS end end