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.3.tar.gz (83.2 kB view details)

Uploaded Source

Built Distribution

gotrackit-0.1.3-py3-none-any.whl (109.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gotrackit-0.1.3.tar.gz
  • Upload date:
  • Size: 83.2 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.3.tar.gz
Algorithm Hash digest
SHA256 221b9560a62a2bda0ecb8334cd9776ed2694102eca8cc691ac7a4263f58b694a
MD5 2c3d273e20b0cf34af126177a29599ea
BLAKE2b-256 9a7d9fd5fb2be2c0bd4d0e58a8349f87e68deabff41fa6327d016f426b86edac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gotrackit-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 109.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f489f37498914d4579d8620521f52c107b8a594e009dc5ec3cedf90da431b769
MD5 2a9b3068e8c832c284c769a289642fdf
BLAKE2b-256 7a2ea01d78c06f6c7346d2c85d589908c9568541274c6c8721514c2fb522124d

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