Skip to content
Snippets Groups Projects
Commit e7894233 authored by tomlion's avatar tomlion
Browse files

pass region and components to google geocode query url

parent 10824dda
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,12 @@ module Geocoder::Lookup
unless (bounds = query.options[:bounds]).nil?
params[:bounds] = bounds.map{ |point| "%f,%f" % point }.join('|')
end
unless (region = query.options[:region]).nil?
params[:region] = region
end
unless (components = query.options[:components]).nil?
params[:components] = components
end
params
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