2

这就是我计算两个索引位置之间的平均距离的方式;

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

它给了我一个数字,但我不知道它在哪个单位?或者我如何将其转换为英里。作为一个例子,它给了我 3.97... 作为 LA 和 LV 之间的距离。

4

0 回答 0