We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
下面的代码查询某个终端在最近一天内的行驶里程:
try { final now = DateTime.now(); final distance = await AmapTrack.instance.queryDistance( _terminalId, startTime: now.subtract(Duration(days: 1)), endTime: now, ); } catch (e) { print(e); }
返回对象为以米为单位的距离信息。
米