Skip to main content

A Python Package for Map Matching Algorithm Based on Hidden Markov Model

Project description

GoTrackIt

Documentation Status PyPI - Version GitHub License PyPI - Downloads

作者: 唐铠, 794568794@qq.com, tangkai@zhechengdata.com

1. 简介

本地图匹配包基于隐马尔可夫模型(HMM)实现了连续GPS点位的概率建模,利用这个包可以轻松对GPS数据进行地图匹配,本开源包的特点如下:

数据无忧

  • 提供路网生产模块以及路网优化接口,您不需要准备任何路网和GPS数据即可玩转地图匹配;
  • 提供GPS样例数据生产模块,解决没有GPS数据的难题;
  • 提供GPS数据清洗接口,包括滑动窗口降噪、数据降频。

文档齐全

  • 中文文档,有详细的操作指引;
  • 算法原理讲解部分不涉及复杂的公式推导,使用动画形式剖析算法原理,简洁明了。

匹配结果自动优化

  • 对基于HMM匹配的初步路径进行了优化,对于不连通的位置会自动补路,对于实际路网不连通的位置会输出警告,方便用户检查路网。

1.1. 如何安装gotrackit

所需前置依赖

  • geopandas(0.14.1)
  • geopy(2.4.1)
  • gdal(3.4.3)
  • networkx(3.2.1)
  • shapely(2.0.2)
  • pandas(2.0.3)
  • numpy(1.26.2)
  • pyproj(3.6.1)
  • keplergl(0.3.2)

括号中为作者使用版本(基于python3.11), 仅供参考

geopandas为最新版本, 如果不是最新版本可能会报错(有个函数旧版本没有)

使用pip安装

安装:

pip install -i https://pypi.org/simple/ gotrackit

更新:

pip install --upgrade  -i https://pypi.org/simple/ gotrackit

1.2 用户手册

用户文档链接

2. 地图匹配问题

car_gps.png

where_car.png

如何依据GPS数据推算车辆的实际路径?

3. 地图匹配算法动画演示

想了解算法过程的可以参考B站视频: 基于隐马尔可夫模型(HMM)的地图匹配算法动画版!学不会你来打我!

main.png

main.png

main.png

main.png

4. 匹配结果可视化

中高频GPS匹配效果:

main.png

低频GPS匹配效果:

main.png

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gotrackit-0.1.4.tar.gz (83.4 kB view details)

Uploaded Source

Built Distribution

gotrackit-0.1.4-py3-none-any.whl (109.3 kB view details)

Uploaded Python 3

File details

Details for the file gotrackit-0.1.4.tar.gz.

File metadata

  • Download URL: gotrackit-0.1.4.tar.gz
  • Upload date:
  • Size: 83.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for gotrackit-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e21b6abc2b44081f7288abc9bff3684e8b88dcf467560591f2028d2f6c4976ae
MD5 6cb700cc49d85191addff925aeeab765
BLAKE2b-256 2bdf49d3e13fdb3788e95b70e7bf73da3ff7f4af48e8067c8d879880989fa52d

See more details on using hashes here.

File details

Details for the file gotrackit-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: gotrackit-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 109.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for gotrackit-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6101a75c698cf125480d61761268dce5085a94240eb0ba37d6f217305a306e5e
MD5 e73fd6fe4aa67ab7560eb538112cfebe
BLAKE2b-256 6a3608d686256e1e02146f678cc80a6a41c1288084de0c8c4de60517f71b5270

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page