Skip to content
Snippets Groups Projects
Commit b5571ff1 authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge pull request #277 from balvig/sqlite_distance_bug

Fixed unit config not working with sqlite distance
parents 7017f2d1 e1a9d727
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