|
1. iphone6获取了经纬度,获取不到地理位置 例如 国家省份 市
2.android 可以
下面是代码:
bmLocation.getPermissionState(function(ret) {
var sta = ret.code;
});
bmLocation.configManager({
accuracy : 'device_sensors',
filter : 1,
activityType : 'automotiveNavigation',
coordinateType : 'GCJ02',
locationTimeout : 10,
reGeocodeTimeout : 10
});
bmLocation.singleLocation({
reGeocode: false,
netWorkState: false
}, function(ret) {
console.log(JSON.stringify(ret));
if(ret.status){
mylocation = ret.reGeo.city+ret.reGeo.district;
}
});
结果是:
[2019-08-02 17:03:52] [WiFi log] {"networkState":1,"locationID":"vay98auspKOvrPqu9qam8OvpvLnl6ui5uePgtefktefei93Vy4CFh9eIpK7S0NPQvryEyMeZwNWVteXh2rDBzpiiycq_yLnA5pO0yLTCpvPx_q_8rvum3fan8YOnvKivuJqFnZSYl4zEwJfoiZXikf6K3viEqIf9o5eRktjVjNhpKGY5IyA3IHpmLSswbgQpOTRHMj1pBzlvNkyeIgC1_1564736634","provider":"iOS","status":true,"location":{"verticalAccuracy":10,"speed":-1,"longitude":118.77616048177083,"horizontalAccuracy":65,"course":-1,"latitude":36.889539116753475,"timestamp":1564736626222.7622,"altitude":22.00103759765625},"reGeo":{"district":"","city":"","country":"","street":"","cityCode":"","adCode":"","locationDescribe":"","countryCode":"","poiList":[],"streetNumber":"","province":""}}
以前不用<application name="targetSdkVersion" value="26"/>都能获取地址,现在加上后iphone获取不到。
https://community.apicloud.com/bbs/thread-140010-1-1.html
我再另一个帖子问了 也没解决,能帮看下嘛? |
|