ruby on rails - Mongoid Geo Near Average Distance unit? -


this how calculating average distance betwoon 2 indexed locations;

:distance => user.where(:email => worker).geo_near(pb.location).average_distance.round(5) 

it giving me number right can't find out unit in? or how can convert in miles. example giving me 3.97... distance between la , lv.


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -