使用mysql空間索引,搜索附近的座標地址並按距離排序

SELECT address,X(address_loc),Y(address_loc),(2 * 6378.137 * ASIN(SQRT(POW(SIN(PI() * (:lat - X(p.shop_point)) / 360),2) + COS(PI() * :lat / 180) * COS(X(p.shop_point) * PI() / 180) * POW(SIN(PI() * (
相關文章
相關標籤/搜索