GeoRSS aggregator and Layar augmented reality server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 lines
262 B

  1. class PostsController < ApplicationController
  2. def near
  3. @posts = Post.near(params[:lat].to_f, params[:lng].to_f, params[:radius].to_f)
  4. respond_to do |format|
  5. format.html # near.html.erb
  6. format.json { render json: @posts }
  7. end
  8. end
  9. end