Browse Source

Make radius range inclusive

master
Adrian Short 12 years ago
parent
commit
e7da0f5ba3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/post.rb

+ 1
- 1
app/models/post.rb View File

@@ -41,7 +41,7 @@ class Post < ActiveRecord::Base
- radians('#{lon}') )
+ sin( radians('#{lat}') )
* sin( radians( p.lat ) ) ) )
< #{radius_metres}
<= #{radius_metres}
ORDER BY distance



Loading…
Cancel
Save