Skip to content
Browse files

allow requests to constrain the distance

  • Loading branch information...
1 parent 1382c1e commit 36764d0f9ca8d253e031c94d1647b96af002cbcf @technoweenie committed Feb 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 instagram_campfire_hook.rb
View
3 instagram_campfire_hook.rb
@@ -46,7 +46,8 @@ class InstagramCampfireHookApp < Sinatra::Base
params[:lat] || settings.instagram_lat,
params[:lng] || settings.instagram_lng,
:max_timestamp => params[:max],
- :min_timestamp => params[:min]
+ :min_timestamp => params[:min],
+ :distance => params[:distance] || '1000'
image = images[rand(images.size)]
url = image.images.standard_resolution.url

0 comments on commit 36764d0

Please sign in to comment.
Something went wrong with that request. Please try again.