地理位置信息插件(WorkPlus_Location)


1. 获取定位信息

返回地理位置信息

请求调用示例:

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

说明:
请求输入数据:无
请求返回数据:
{
    "latitude": "xxxx",
    "longitude":"xxx"
}


results matching ""

    No results matching ""