|
楼主 |
发表于 2017-1-16 16:10:12
|
显示全部楼层
3.6里的com.justep.cordova.plugin.baiduMapBase。能实现ios直接在移动端(不请求后台)直接获取地理位置吗?或者转换?- navigator.baiduMap.base.getNameFromLocation(args,success,error)
- 描述:根据经纬度查找地址信息
- args: Object – 传入参数,示例如下:
- {
- “lon”:Number – 经度,
- “lat”:Number – 纬度,
- }
- success:Function – 成功返回示例:
- {
- "status": 0,
- "result": {
- "location": {
- "lng": 116.3969999999999,
- "lat": 39.91000007743232
- },
- "pois": [ ],
- "poiRegions": [
- {
- "direction_desc": "内",
- "name": "国家大剧院",
- "tag": "休闲娱乐"
- }
- ],
- "sematic_description": "国家大剧院内",
- "cityCode": 131,
- "addressComponent": {
- "adcode": "110102",
- "city": "北京市",
- "country": "中国",
- "distance": "66",
- "district": "西城区",
- "street": "前后井胡同",
- "street_number": "11号",
- "country_code": 0,
- "direction": "南",
- "province": "北京市"
- },
- "business": "天安门,和平门,前门",
- "formatted_address": "北京市西城区前后井胡同11号"
- }
- }
- error:Function – 失败回调
复制代码 |
|