#csv #检测 #停止 #GPS #位置 #距离 #时间

应用程序 lachesis

基于Hariharan和Toyama(2004年)的GPS停止点检测方法《李刻特斯项目:位置历史解析和建模》

3个稳定版本

1.0.2 2023年5月3日

#2485解析实现

29每月下载量

自定义许可证

16KB
333

lachesis

描述

实现了Hariharan和Toyama(2004年)的《李刻特斯项目:位置历史解析和建模》的第一阶段停止点检测算法

安装

cargo install lachesis  

数据格式

此二进制文件需要一个.csv文件(无标题),包含以下列:id(字符串),time(字符串),x(浮点数),y(浮点数)。

示例用法

cat data/gps_data.csv | lachesis --distance 200 --time 300 --fmt-time '%Y-%m-%d %H:%M:%S' > output.csv

API文档

lachesis --help
GPS stop point detection from Hariharan and Toyama (2004) 'Project Lachesis: Parsing and Modeling Location Histories'

Usage: lachesis --distance <DISTANCE> --time <TIME> --fmt-time <FMT_TIME>

Options:
  -d, --distance <DISTANCE>  Maximum spatial roam of a stop point (i.e. 200m)
  -t, --time <TIME>          Minimum time duration of a stop point (i.e. 300 seconds)
  -f, --fmt-time <FMT_TIME>  Format of dates in the input file (i.e. "%Y-%m-%d %H:%M:%S")
  -h, --help                 Print help
  -V, --version              Print version

依赖关系

~3.5–4.5MB
~68K SLoC