Skip to content
Snippets Groups Projects
Commit e1a9d727 authored by Jens Balvig's avatar Jens Balvig
Browse files

fixed unit config not working with sqlite distance

parent 7c344826
No related branches found
No related tags found
No related merge requests found
......@@ -213,8 +213,8 @@ module Geocoder::Store
bearing = false
end
distance = approx_distance_from_sql(latitude, longitude, options)
options[:units] ||= (geocoder_options[:units] || Geocoder::Configuration.units)
distance = approx_distance_from_sql(latitude, longitude, options)
b = Geocoder::Calculations.bounding_box([latitude, longitude], radius, options)
conditions = [
......
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