会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
盘古开地
博客园
::
首页
::
博问
::
闪存
::
新随笔
::
联系
::
订阅
::
管理
::
公告
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数据类型
摘要: Elasticsearch自带的数据类型是Lucene索引的依据,也是做手动映射调整的依据。映射中主要就是针对字段设置类型以及类型相关参数。1.JSON基础类型如下:字符串:string数字:byte、short、integer、long、float、double、时间:date布尔值: true、
阅读全文
posted @ 2017-05-08 16:10 盘古开地
阅读(199)
评论(0)
推荐(0)
编辑