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()) 601.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