Pr0d1r2-geokit 1.3.2.3 → 1.3.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/geokit.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Geokit
2
- VERSION = '1.3.2.3'
2
+ VERSION = '1.3.2.4'
3
3
  # These defaults are used in Geokit::Mappable.distance_to and in acts_as_mappable
4
4
  @@default_units = :miles
5
5
  @@default_formula = :sphere
@@ -8,7 +8,7 @@ module Geokit
8
8
  end
9
9
  end
10
10
 
11
- def geocoder
11
+ def multi_geocoder
12
12
  if cache_locations?
13
13
  Geokit::Geocoders::CachedMultiGeocoder
14
14
  else
@@ -17,7 +17,7 @@ module Geokit
17
17
  end
18
18
 
19
19
  def geocode_address_cached
20
- @geocoder.geocode(complete_address)
20
+ multi_geocoder.geocode(complete_address)
21
21
  self.lat, self.lng, self.provider = @geo.lat, @geo.lng, @geo.provider if @geo.success
22
22
  end
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Pr0d1r2-geokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2.3
4
+ version: 1.3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Lewis and Bill Eisenhauer and Pr0d1r2 (Marcin Nowicki)