diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index c0c12fb..d53db30 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -2,13 +2,13 @@ class PostsController < ApplicationController include PostsHelper def near - @posts = Post.near(params[:lat].to_f, params[:lon].to_f, params[:radius].to_f) + @posts = Post.near(params[:lat].to_f, params[:lon].to_f, params[:radius].to_f, params[:layer_id]) - ErrorLog.create( - :ts => Time.now, - :params => params, - :pois_returned => @posts.size - ) +# ErrorLog.create( +# :ts => Time.now, +# :params => params, +# :pois_returned => @posts.size +# ) layar_response = { :layer => 'hyparlocal',