Module: GeoKit::Geocoders

Extended by:
GeoKitGeocodersDefaults
Included in:
LocationFinderPage, LocationsTags
Defined in:
lib/geo_kit/geocoders.rb

Overview

Contains a set of geocoders which can be used independently if desired. The list contains:

  • Google Geocoder - requires an API key.

  • 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.

  • IP Geocoder - geocodes an IP address using hostip.info’s web service.

  • Multi Geocoder - provides failover for the physical location geocoders.

Some configuration is required for these geocoders and can be located in the environment configuration files.

Defined Under Namespace

Classes: CaGeocoder, GeocodeError, Geocoder, GoogleGeocoder, IpGeocoder, MultiGeocoder, UsGeocoder, YahooGeocoder

Constant Summary collapse

@@proxy_addr =
nil
@@proxy_port =
nil
@@proxy_user =
nil
@@proxy_pass =
nil
@@timeout =
nil
@@yahoo =
'REPLACE_WITH_YOUR_YAHOO_KEY'
@@google =
'REPLACE_WITH_YOUR_GOOGLE_KEY'
@@geocoder_us =
false
@@geocoder_ca =
false
@@provider_order =
[:google,:us]

Method Summary

Methods included from GeoKitGeocodersDefaults

provider_order, timeout, timeout=