com-amap-location
v1.0.23
Published
Cordova Location Plugin By AMap
Downloads
5
Maintainers
Readme
com-amap-location
Description
this is a plugin get location info by use GaoDe Map API,it only used in china.
Installation
cordova plugin add com-amap-location
Properties
window.xunsoft.getCurrentPosition(success,fail);
callback function have a params
success callback params properties
#### locationType
#### latitude
#### longitude
#### accuracy
#### altitude
#### address
### country
#### province
#### city
#### district
#### street
#### locationDetail
fail callback params properties
#### code
#### message
example
window.xunsoft.getCurrentPosition(function(response){
console.log(response.locationType);
console.log(response.latitude);
console.log(response.longitude);
},function(response){
console.log(response.code);
console.log(response.message);
})
Supported Platforms
- Android
- iOS