Skip to content

Commit

Permalink
Merge pull request #51 from dhedlund/google3_geocoder
Browse files Browse the repository at this point in the history
Support for v3 Google Geocoding API, v2 no longer works, fixes #50
  • Loading branch information
reidab committed Sep 28, 2013
2 parents 59d7f8d + 2ed7d88 commit 85b1cd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/initializers/geokit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

# CALAGATOR: Differences from the defaults are tagged like this below.

# remap Google V3 geocoder so we can reference it in provider list, see:
# https://github.com/geokit/geokit/issues/86
Geokit::Geocoders::Google3Geocoder = Geokit::Geocoders::GoogleGeocoder3

# These defaults are used in GeoKit::Mappable.distance_to and in acts_as_mappable
GeoKit::default_units = :miles
GeoKit::default_formula = :sphere
Expand Down Expand Up @@ -67,4 +71,4 @@
#
# CALAGATOR: was [:google, :us], but this is all we need since we're Google-only.
#
GeoKit::Geocoders::provider_order = [:google]
GeoKit::Geocoders::provider_order = [:google3]

0 comments on commit 85b1cd5

Please sign in to comment.