方法一:within_kilometers(key, point, max_distance, min_distance=None)

方法二:within_radians(key, point, max_distance, min_distance=None)

max_distance – 最大距离限定(弧度) -> 弧度具体指的是?

您好,对一个球形物体来说,kilometer、radius、radians 都是用来表示两点间距离的单位,是可以相互转换的。max_distance 是表示地球表面到参考点的最大距离,以弧度为单位。方法一:within_kilometers 的距离参数是以千米为单位,within_radians 的距离参数以弧度为单位。推荐您使用 within_kilometers方法查询就可以了。

如果您想深入研究单位之间的换算可以参考这篇博客: http://www.infoq.com/cn/articles/depth-study-of-Symfony22