Hi i am applying the formula to find the surrounding distance within 10 km
using ruby
geokit
x=((((acos(sin(('#{lat}'*pi()/180)) *
sin((`latitude`*pi()/180))+cos(('#{lat}'*pi()/180)) *
cos((`latitude`*pi()/180)) * cos((('#{lng}'-
`longitude`)*pi()/180))))*180/pi())*60*1.1515*1.609344) <= 10)
NoMethodError: undefined method `pi' for main:Object
Am getting this error help me to solve this.ANd morever i ma not connected
to any databse\
Regsrda
prashanth
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---