Skip to content
Snippets Groups Projects
Commit 830ee83c authored by Alex Reisner's avatar Alex Reisner Committed by GitHub
Browse files

Merge pull request #1188 from TrangPham/geocodeed_by_params

Add `:params` for geocoded_by and reverse_geocoded_by
parents 1ad22e8e 5bedd2a4
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,8 @@ module Geocoder
:units => options[:units],
:method => options[:method],
:lookup => options[:lookup],
:language => options[:language]
:language => options[:language],
:params => options[:params]
)
end
......@@ -35,7 +36,8 @@ module Geocoder
:units => options[:units],
:method => options[:method],
:lookup => options[:lookup],
:language => options[:language]
:language => options[:language],
:params => options[:params]
)
end
......@@ -47,4 +49,3 @@ module Geocoder
end
end
end
......@@ -113,4 +113,3 @@ module Geocoder
end
end
end
......@@ -34,4 +34,10 @@ class ModelTest < GeocoderTestCase
assert_equal :km, PlaceReverseGeocoded.geocoder_options[:units]
assert_equal :spherical, PlaceReverseGeocoded.geocoder_options[:method]
end
def test_params
params = {incude: "cios2"}
PlaceReverseGeocoded.reverse_geocoded_by :latitude, :longitude, params: params
assert_equal params, PlaceReverseGeocoded.geocoder_options[:params]
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment