queryTerminalTrack static method

Future<Result> queryTerminalTrack({
  1. required String serviceId,
  2. required String terminalId,
  3. required String trackId,
  4. DateTime? startTime,
  5. DateTime? endTime,
  6. int? noising = 0,
  7. int? bindLoad = 1,
  8. int? accFilter = 0,
  9. int? driveMode = DriveMode.DRIVING,
  10. int? disCompensation = 1,
  11. int? compensationMeter = 2000,
  12. int? includePoints = 1,
  13. int? page = 1,
  14. int? limit = 100,
})

获取指定轨迹

Implementation

static Future<Result> queryTerminalTrack({
  required String serviceId,
  required String terminalId,
  required String trackId,
  DateTime? startTime,
  DateTime? endTime,
  int? noising = 0, // 去噪:不启用去噪
  int? bindLoad = 1, // 是否绑路:绑路
  int? accFilter = 0, // 精度过滤:不进行精度过滤
  int? driveMode = DriveMode.DRIVING, // 行驶模式: 当前仅支持驾车模式
  int? disCompensation = 1, // 距离补偿:距离补偿
  int? compensationMeter = 2000, // 距离补偿:这里只有超过2km的点才启用距离补偿
  int? includePoints = 1, // 包含点:结果应该包含轨迹点信息
  int? page = 1, // 返回第1页数据,由于未指定轨迹,分页将失效
  int? limit = 100, // 一页不超过100条
}) async {
  final String? json = await _channel.invokeMethod('queryLatestPoint', {
    "serviceId": serviceId,
    "terminalId": terminalId,
    "trackId": trackId,
    "startTime": startTime?.millisecond,
    "endTime": endTime?.millisecond,
    "noising": noising,
    "bindLoad": bindLoad,
    "accFilter": accFilter,
    "driveMode": driveMode,
    "disCompensation": disCompensation,
    "compensationMeter": compensationMeter,
    "includePoints": includePoints,
    "page": page,
    "limit": limit,
  });
  Result result = Result.fromJson(jsonDecode(json ?? "{}"));
  return result;
}