1.位置服务,英文翻译为Location-Based Services,简称LBS,又称为定位服务或基于位置的服务,融合了GPS定位、移动通信、导航等多种技术,提供与空间位置相关的综合应用服务,基于位置的服务发展很迅速,涉及商务、医疗、工作和生活的各个方面,为用户提供定位、追踪和敏感区域警告等一系列服务。比如谷歌地图,百度地图,都需要通过位置服务。
2.Android平台下支持提...
分类:
移动开发 时间:
2015-03-18 16:01:35
阅读次数:
272
1.User Location获取用户的位置追踪用户的移动2.User Location的API 1.LocationManager :用于管理android的用户定位服务 2.LocationProvider :提供多种定位方式给开发者选择 3.LocationListener : 监听位置是否改...
分类:
移动开发 时间:
2015-02-22 18:26:46
阅读次数:
228
经过前几天的学习,我们的天气预报程序已经可以把天气正常的呈现出来了,正如之前说的,现在的APP只能显示固定地区的天气,那么我们要怎样才能显示我们本身所在地的天气呢?Android定位Android系统本身提供了三种定位方式,分别是网络、基站和GPS,主要利用的是LocationManager、Tel...
分类:
移动开发 时间:
2015-01-22 17:16:21
阅读次数:
186
前一篇百度地图开发讲述"(二).定位城市位置和城市POI搜索",主要通过监听对象MKSearchListener类实现城市兴趣点POI(Point of Interest)搜索。该篇讲述定位当前自己的位置及使用getLastKnownLocation获取location总时为空值的问题。其基本步骤如下: 1.先实例LocationManager,getSystemService(Context.LOCATION_SERVICE)再确定获取系统的定位服务;2.选择位置提供器...最后提出问题及解决方法包括源码...
分类:
移动开发 时间:
2015-01-11 06:15:01
阅读次数:
468
GPS定位貌似在室内用不了,今天自己弄了一个GPS定位小Demo,包括用户所在的经度、纬度、高度、方向、移动速度、精确度等信息。Android为GPS功能支持专门提供了一个LocationManager类,程序并不能直接创建LocationManager实例,而是通过Context的getSystemService()方法来获取...
分类:
移动开发 时间:
2015-01-09 23:52:54
阅读次数:
375
GPS定位貌似在室内用不了,今天自己弄了一个GPS定位小Demo,包括用户所在的经度、纬度、高度、方向、移动速度、精确度等信息。Android为GPS功能支持专门提供了一个LocationManager类,程序并不能直接创建LocationManager实例,而是通过Context的getSyste...
分类:
移动开发 时间:
2015-01-09 23:35:29
阅读次数:
213
1 定位,主要是干啥呢?
1 获取位置相关数据
2 获取位置相关信息
由此,我想到了当年玩反恐精英里面用瞄准镜的瞄准的感觉:
2 那……怎样定位呢?
1首先你得瞄准吧
locationManager=[[CLLocationManager alloc]init]; // 定义locationManage对象 打开瞄准镜
locationMana...
分类:
移动开发 时间:
2015-01-08 21:43:55
阅读次数:
251
首先苹果获取经纬度是if([CLLocationManagerlocationServicesEnabled]){//判断手机是否可以定位locationManager=[[CLLocationManageralloc]init];//初始化位置管理器[locationManagersetDeleg...
分类:
其他好文 时间:
2014-12-26 12:32:49
阅读次数:
163
LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
List providers = lm.getProviders(true);
/* Loop over the array backwards, and if you get an accurate location, the...
分类:
移动开发 时间:
2014-12-20 19:42:35
阅读次数:
234
一直以来,定位的实现都非常的简单和一致:
Objective-C的实现:
#import "ViewController.h"
@import CoreLocation; //引入库文件
@interface ViewController () //遵守协议
@property (strong, nonatomic) CLLocationManager *locationManager;...
分类:
移动开发 时间:
2014-12-17 18:42:48
阅读次数:
202