Skip to main content

地理位置

1. 获取定位信息

返回地理位置信息

请求调用示例:

function getLocation(){
cordova.exec(function(result) {
alert(JSON.stringify(result, null, 4));
},
function(error) {
alert("调用失败");
},
"WorkPlus_Location",
"getLocation",
[]
);
}

说明:
请求输入数据:无
请求返回数据:
{
"latitude": "xxxx",
"longitude":"xxx",
"address" : "广州市天河区 xxx 街道 xxx" //具体地址信息,
"city" : "xxx", //广州市
"district" : "xxx", //天河区
"street" : "xxx", //翰景路
"aoiName" : xxx //金星大厦
}