摘要: /** * @Desc 根据经纬度坐标计算两点的距离算法 * @Author yangzhenlong * @Data 2018/5/9 18:38 */ public class LocationUtils { private static final Double PI = Math.PI; private static final Double PK = 180 / ... 阅读全文
posted @ 2018-05-31 17:57 艺言弈行 阅读(5020) 评论(0) 推荐(0) 编辑
摘要: es实体,用 @GeoPointField 注解,值为:中间逗号隔开,如 29.477000,119.278536(经度, 维度) 接口: 实现: 查询10公里范围数据,返回: 阅读全文
posted @ 2018-05-31 17:55 艺言弈行 阅读(8339) 评论(8) 推荐(0) 编辑