国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

百度定位的核心代碼塊

2019-11-06 10:04:37
字體:
來源:轉載
供稿:網友

使用百度定位:

PRivate void locateRunman() { AppContext.getInstance().startLocation(null, new BaiMapLocationCallBack() { @Override public void onLocationReceived(BDLocation location, LocationClient client) { if (location == null) { return; } double longitude = location.getLongitude(); double latitude = location.getLatitude(); DecimalFormat decimalFormat = new DecimalFormat( "#,##0.000000"); String city = StringUtils.trimNull(location.getCity()); String address = StringUtils.trimNull(location .getAddrStr()); RunmanLocationBean locBean = new RunmanLocationBean(); locBean.setAddress(address); locBean.setCreatetime(DateUtils.getNowTimeStamp()); locBean.setLatitude(decimalFormat.format(latitude)); locBean.setLongitude(decimalFormat.format(longitude)); locBean.setCity(city); if (runman != null) { locBean.setRunmanId(runman.getRunManId()); } MyLog.d(getLogTag(), locBean.toString()); if (needQueryWeatherInfo(city)) { // 查詢天氣 queryWeather(); } else { initWeatherInfo(); } } }); }
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 兴业县| 武清区| 天镇县| 如皋市| 原平市| 白银市| 郁南县| 荣成市| 荔波县| 东海县| 浦县| 灵宝市| 潞西市| 葵青区| 司法| 高邮市| 闽清县| 开封县| 东至县| 吉林省| 斗六市| 永兴县| 勃利县| 玉门市| 宝丰县| 寿阳县| 梁平县| 江源县| 驻马店市| 乐平市| 都江堰市| 界首市| 巴东县| 双柏县| 保山市| 伊宁县| 乐业县| 楚雄市| 科尔| 准格尔旗| 天柱县|