盘古开地

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年5月8日

摘要: 地图坐标转换 阅读全文
posted @ 2017-05-08 17:24 盘古开地 阅读(234) 评论(0) 推荐(0) 编辑

摘要: public function get_distance($lat1, $lng1, $lat2, $lng2) { $earthRadius = 6367000; //approximate radius of earth in meters $lat1 = ($lat1 * pi() ) / 1 阅读全文
posted @ 2017-05-08 16:26 盘古开地 阅读(214) 评论(0) 推荐(0) 编辑

摘要: //解密后的经纬度数据(火星坐标) public function decode_poi($poi) { $settings = array( 'digi' => 16, 'add' => 10, 'plus' => 7, 'cha' => 36, 'center' => array( 'lat' 阅读全文
posted @ 2017-05-08 16:12 盘古开地 阅读(1509) 评论(0) 推荐(0) 编辑

摘要: Elasticsearch自带的数据类型是Lucene索引的依据,也是做手动映射调整的依据。映射中主要就是针对字段设置类型以及类型相关参数。1.JSON基础类型如下:字符串:string数字:byte、short、integer、long、float、double、时间:date布尔值: true、 阅读全文
posted @ 2017-05-08 16:10 盘古开地 阅读(199) 评论(0) 推荐(0) 编辑