Skip to content

百度地图定位工具类,让app里面使用百度地图进行定位更加的方便

License

Notifications You must be signed in to change notification settings

hz-pm/BDLocationUtil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BDLocationUtil

百度地图定位工具类

使用方法

首先初始化:LocationUtil.init(MainActivity.this);

    LocationUtil.getLocation(new LocationUtil.LocationListener() {
        @Override
        public void onGetLocationStart() {
            LogUtils.d("----------定位开始---------------");
        }
        @Override
        public void onReceiveLocation(BDLocation location) {
            LogUtils.d("============定位成功=================\n"+location.getAddrStr()+"--->"+location.getCity());
        }
        @Override
        public void onGetLocationTimeOut() {
            LogUtils.d("----------定位超时----------------");
        }
    },3500,true,false);

About

百度地图定位工具类,让app里面使用百度地图进行定位更加的方便

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages