Pārlūkot izejas kodu

Add layer_id param

master
Adrian Short pirms 11 gadiem
vecāks
revīzija
dab7c7ae44
1 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. +6
    -6
      app/controllers/posts_controller.rb

+ 6
- 6
app/controllers/posts_controller.rb Parādīt failu

@@ -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',


Notiek ielāde…
Atcelt
Saglabāt