Cordova定位插件,不使用第三方库,暂无逆地址
cordova plugin add cordova-plugin-geolocation-raw
- latitude:经度
- longitude:纬度
// locate
RawLocation.getLocation({ }, function (locationInfo) {
// do something
console.log(JSON.stringify(locationInfo));
}, function (err) {
console.log(err);
});