简要描述:
- 获取导游位置
请求URL:
- /api/guest/guidelocation
请求参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
guestId | 是 | int32 | 客人Id |
入参示例:
https://localhost:6001/api/guest/guidelocation?guestId=1&api-version=1.0
返回示例:
正确时返回:
{
"code": 200,
"success": true,
"message": null,
"result": {
"guideLocation": [
{
"guideId": 49,
"guideName": "猫咪神",
"locationInfos": {
"lat": 61,
"lon": -122.084,
"accuracy": 0,
"sendTime": "2019-11-22T00:20:36"
}
}
],
"mapProvider": {
"url": "https://api.mapbox.com/v4/{id}/{z}/{x}/{y}@2x.png?access_token={accessToken}",
"options": {
"accessToken": "pk.eyJ1Ijoicmljb2Z1IiwixxxxxxxxxeWkzZHF3aHoxdWNreWYifQ.DXPj3igD_8YgT3p1LbQZIA",
"id": "mapbox.streets"
}
}
}
}
错误时返回:
{
"code": 500,
"success": false,
"message": "find teamId is null",
"result": null
}
返回参数说明:
Data数据说明
参数名 | 类型 | 说明 |
---|---|---|
result | bool | 发送结果 true成功 false失败 |
备注:
-