This website works better with JavaScript.
Home
Explore
Help
Sign In
adrianshort
/
apollo
mirror of
https://github.com/adrianshort/apollo.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Make radius range inclusive
master
Adrian Short
12 years ago
parent
75259fefb9
commit
e7da0f5ba3
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save