【GPS】 数据围栏
2015-08-31 16:25
246 查看
1.记录gps信息,定位类型 gps agps ,偏移量
2.根据id检索用户 gps 历史记录
3.创建围栏
4.围栏内用户检索(先实现 圆形和矩形)
5.判断一个点是否进出围栏
应用场景:
o2o应用场景
1.商场推送
2.人群分析,来过这里还去过哪里
包裹自动分配投递站(根据地址获取坐标,根据坐标获取围栏 根据围栏找到对应投递站)
用postgreSQL做基于地理位置的app
http://blog.csdn.net/wusuopubupt/article/details/21621477
2.根据id检索用户 gps 历史记录
3.创建围栏
4.围栏内用户检索(先实现 圆形和矩形)
5.判断一个点是否进出围栏
应用场景:
o2o应用场景
1.商场推送
2.人群分析,来过这里还去过哪里
包裹自动分配投递站(根据地址获取坐标,根据坐标获取围栏 根据围栏找到对应投递站)
用postgreSQL做基于地理位置的app
http://blog.csdn.net/wusuopubupt/article/details/21621477
Function | Returns | Description |
---|---|---|
earth() | float8 | Returns the assumed radius of the Earth. |
sec_to_gc(float8) | float8 | Converts the normal straight line (secant) distance between between two points on the surface of the Earth to the great circle distance between them. |
gc_to_sec(float8) | float8 | Converts the great circle distance between two points on the surface of the Earth to the normal straight line (secant) distance between them. |
ll_to_earth(float8, float8) | earth | Returns the location of a point on the surface of the Earth given its latitude (argument 1) and longitude (argument 2) in degrees. |
latitude(earth) | float8 | Returns the latitude in degrees of a point on the surface of the Earth. |
longitude(earth) | float8 | Returns the longitude in degrees of a point on the surface of the Earth. |
earth_distance(earth, earth) | float8 | Returns the great circle distance between two points on the surface of the Earth. |
earth_box(earth, float8) | cube | Returns a box suitable for an indexed search using the cube @> operator for points within a given great circle distance of a location. Some points in this box are further than the specified great circle distance from the location, so a second check using earth_distanceshould be included in the query. |
相关文章推荐
- Android 蓝牙API
- jquery实现可点击伸缩与展开的菜单效果代码
- IOS KeyChain理解及代码事例
- Codeforces Round #318 [RussianCodeCup Thanks-Round] (Div. 2) B. Bear and Three Musketeers(STL_暴力)
- poj 2377 Bad Cowtractors
- WEB前端知识体系
- Linq学习笔记---Linq to Xml操作
- Hyper-V总结
- gdb使用及原理【转】
- 1058. A+B in Hogwarts (20):有疑惑-第三个测试点错误
- js 按需加载
- 【小姿势】如何搭建ipa下载web服务器(直接在手机打开浏览器安装)
- JS自动倒计时30秒后按钮才可用(两种场景)
- 数据结构与算法分析Java版练习1.14
- ubuntu禁用笔记本触摸板
- ROWID的含义与块地址rdba深入分析
- Axis2 Web服务配置文件services.xml详解
- ebs知识点100题
- HDU2282Chocolate(KM匹配)
- cocos2d-x 延迟执行一段代码1 顺序执行动作+延迟动作+CallFunc