定位插件
Module名:gps
1.开始定位: startLocation:
1.1 入参
无
1.2 出参
{"res": "1","data":[{
"name":"名称",
"address":"位置",
"latitude":"纬度(GCJ02)",
"longitude":"经度(GCJ02)"
}]}
参数 | 类型 | 说明 |
---|---|---|
data | 数组 | 位置数据 |
res | 0:错误,1:成功 | |
latitude | 纬度 | |
longitude | 经度 | |
name | 位置名称 | |
address | 位置坐标 |
2. 停止定位: stopLocation
2.1 入参
无
2.2 出参
无