我不确定以下查询有什么问题:
SELECT id, earth_distance(ll_to_earth( 41.273147, -75.896858 ),
ll_to_earth(business_address_latitude, business_address_longitude)) as distance_from_current_location FROM events
WHERE earth_box( ll_to_earth(41.273147, -75.896858), 20000.00) @> ll_to_earth(business_address_latitude, business_address_longitude);
试图搜索 20000 半径内的记录,但当我检查结果时,它给了我超过 20000 米的距离的记录,比如 24286 米的距离。我不确定上述查询有什么问题。任何建议请。