全部产品
云市场

伴随分析服务API

更新时间:2018-01-05 17:52:04

16.1. 描述

  1. 名称:MatchTracks
  2. url: /rest/gis/matchTracks.json

位置服务API用于查询对象的GIS位置信息。

16.2. 请求参数

名称 类型 描述
objectType String 对象类型
objectId String 对象ID
startTime Long 轨迹起始时间
endTime Long 轨迹终止时间
geohashLen Int 轨迹伴随算法geohash长度
topN Int 轨迹伴随结果限制
timeInterval Int 轨迹伴随时间间隔

16.3. 返回参数

16.4. 示例

16.4.1. 请求示例
  1. {
  2. "objectId": "O0001P0009-12345119580",
  3. "objectType": "O0001",
  4. "startTime": 1427810636,
  5. "endTime": 1428422997,
  6. "geohashLen": 6,
  7. "topN": 5,
  8. "timeInterval": 186
  9. }
16.4.2. 响应示例
  1. {
  2. "data": [
  3. {
  4. "avatar": "http://i3eye.alipay.net/static/img/kl/nanxing.png",
  5. "label": "12345119580E,",
  6. "objectId": "O0001P0009-12345119580E",
  7. "objectType": "O0001",
  8. "score": 1,
  9. "trackName": "手机号轨迹",
  10. "trackPoints": [
  11. {
  12. "geohash": "wtqfrhqz6p",
  13. "lat": 29.95138889,
  14. "linkId": "L0088^O0001#O0001P0009-12345119580E^O0071#O0071P0001-wtqfrhqz6p",
  15. "lon": 122.3091667,
  16. "time": 1427940441
  17. },
  18. {
  19. "geohash": "wtqfrhqzfs",
  20. "lat": 29.951456,
  21. "linkId": "L0088^O0001#O0001P0009-12345119580E^O0071#O0071P0001-wtqfrhqzfs",
  22. "lon": 122.309186,
  23. "time": 1427940508
  24. },
  25. {
  26. "geohash": "wtqfrhqz6p",
  27. "lat": 29.95138889,
  28. "linkId": "L0088^O0001#O0001P0009-12345119580E^O0071#O0071P0001-wtqfrhqz6p",
  29. "lon": 122.3091667,
  30. "time": 1427966403
  31. },
  32. {
  33. "geohash": "wtqfrhqzfs",
  34. "lat": 29.951456,
  35. "linkId": "L0088^O0001#O0001P0009-12345119580E^O0071#O0071P0001-wtqfrhqzfs",
  36. "lon": 122.309186,
  37. "time": 1427968014
  38. },
  39. {
  40. "geohash": "wtqfrhqz6p",
  41. "lat": 29.95138889,
  42. "linkId": "L0088^O0001#O0001P0009-12345119580E^O0071#O0071P0001-wtqfrhqz6p",
  43. "lon": 122.3091667,
  44. "time": 1428028748
  45. },
  46. {
  47. "geohash": "wtqffe06zv",
  48. "lat": 30.03163,
  49. "linkId": "L0088^O0001#O0001P0009-12345119580E^O0071#O0071P0001-wtqffe06zv",
  50. "lon": 122.10273,
  51. "time": 1428136394
  52. },
  53. {
  54. "geohash": "wtqfrhqz6p",
  55. "lat": 29.95138889,
  56. "linkId": "L0088^O0001#O0001P0009-12345119580E^O0071#O0071P0001-wtqfrhqz6p",
  57. "lon": 122.3091667,
  58. "time": 1428310467
  59. },
  60. {
  61. "geohash": "wtqfrhqz6p",
  62. "lat": 29.95138889,
  63. "linkId": "L0088^O0001#O0001P0009-12345119580E^O0071#O0071P0001-wtqfrhqz6p",
  64. "lon": 122.3091667,
  65. "time": 1428329483
  66. },
  67. {
  68. "geohash": "wtqfrhqzfs",
  69. "lat": 29.951456,
  70. "linkId": "L0088^O0001#O0001P0009-12345119580E^O0071#O0071P0001-wtqfrhqzfs",
  71. "lon": 122.309186,
  72. "time": 1428363307
  73. },
  74. {
  75. "geohash": "wtqfrhqz6p",
  76. "lat": 29.95138889,
  77. "linkId": "L0088^O0001#O0001P0009-12345119580E^O0071#O0071P0001-wtqfrhqz6p",
  78. "lon": 122.3091667,
  79. "time": 1428421360
  80. }
  81. ]
  82. }
  83. ],
  84. "elapsedTime": 205,
  85. "errorcode": 0,
  86. "noteMsg": "",
  87. "success": true
  88. }