]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/geocoder_controller.rb
Refactor MQ/OSRM engines a la @karussell patch
[rails.git] / app / controllers / geocoder_controller.rb
index 6db70a6f37fc3ca21dbf72d8de37e1401e34403d..692ae24ddb2e892d89bbc50e663a9af668e96b67 100644 (file)
@@ -7,6 +7,7 @@ class GeocoderController < ApplicationController
 
   before_filter :authorize_web
   before_filter :set_locale
+  before_filter :require_oauth, :only => [:search]
 
   def search
     normalize_params
@@ -29,6 +30,8 @@ class GeocoderController < ApplicationController
       @sources.push "osm_nominatim"
       @sources.push "geonames" if defined?(GEONAMES_USERNAME)
     end
+
+    render :layout => map_layout
   end
 
   def search_latlon