Remove "whereami" search parameter, use "lat" and "lon" instead
This commit is contained in:
parent
e3c9192758
commit
0d2010cd2f
3 changed files with 7 additions and 6 deletions
|
@ -221,7 +221,7 @@ class GeocoderController < ApplicationController
|
|||
elsif latlon = query.match(%r{^([+-]?\d+(\.\d*)?)(?:\s+|\s*[,/]\s*)([+-]?\d+(\.\d*)?)$})
|
||||
params.merge!(:lat => latlon[1].to_f, :lon => latlon[3].to_f).delete(:query)
|
||||
|
||||
params[:latlon_digits] = true unless params[:whereami]
|
||||
params[:latlon_digits] = true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue