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 +1 -1
- data/lib/geokit/cached/geocodable.rb +2 -2
- metadata +1 -1
data/lib/geokit.rb
CHANGED
@@ -8,7 +8,7 @@ module Geokit
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
def
|
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
|
-
|
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
|
|