瀏覽代碼

Add layer_id param

master
Adrian Short 11 年之前
父節點
當前提交
dab7c7ae44
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. +6
    -6
      app/controllers/posts_controller.rb

+ 6
- 6
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',


Loading…
取消
儲存