简要描述:

  • 获取导游位置

请求URL:

  • /api/guest/guidelocation

请求参数:

参数名 是否必须 类型 说明
guestId int32 客人Id

入参示例:

  1. https://localhost:6001/api/guest/guidelocation?guestId=1&api-version=1.0

返回示例:

正确时返回:

  1. {
  2. "code": 200,
  3. "success": true,
  4. "message": null,
  5. "result": {
  6. "guideLocation": [
  7. {
  8. "guideId": 49,
  9. "guideName": "猫咪神",
  10. "locationInfos": {
  11. "lat": 61,
  12. "lon": -122.084,
  13. "accuracy": 0,
  14. "sendTime": "2019-11-22T00:20:36"
  15. }
  16. }
  17. ],
  18. "mapProvider": {
  19. "url": "https://api.mapbox.com/v4/{id}/{z}/{x}/{y}@2x.png?access_token={accessToken}",
  20. "options": {
  21. "accessToken": "pk.eyJ1Ijoicmljb2Z1IiwixxxxxxxxxeWkzZHF3aHoxdWNreWYifQ.DXPj3igD_8YgT3p1LbQZIA",
  22. "id": "mapbox.streets"
  23. }
  24. }
  25. }
  26. }

错误时返回:

  1. {
  2. "code": 500,
  3. "success": false,
  4. "message": "find teamId is null",
  5. "result": null
  6. }

返回参数说明:

Data数据说明

参数名 类型 说明
result bool 发送结果 true成功 false失败

备注:

-