Skip to main content

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

Project description

car_gps.png

Documentation Status PyPI - Version GitHub License PyPI - Downloads PyPI - Downloads

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

04.18已更新: v0.2.1

更新命令:pip install --upgrade -i https://pypi.org/simple/ gotrackit

  • 地图匹配接口移除geo_res_fldr, geojson文件和html存储在一个目录下,指定html_fldr即可,以及增加其他存储参数(见文档)

  • HTML文件中新增警告路段信息,若该次匹配中出现警告, 则在HTML文件中会多一个图层,该图层记录了GPS状态转移出错的路段

  • 停留点识别功能改进

  • BUG修复

遇到BUG无法解决请进群交流,别忘了给项目一颗star哦~

稀疏轨迹匹配与路径补全:

常规匹配:

用户交流群:

1. 简介

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

数据无忧

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

文档齐全

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

匹配结果自动优化

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

1.1. 如何安装gotrackit

所需前置依赖

  • geopy(2.4.1)
  • gdal(3.4.3)
  • shapely(2.0.3)
  • fiona(1.9.5)
  • pyproj(3.6.1)
  • geopandas(0.14.3)
  • networkx(3.2.1)
  • pandas(2.0.3)
  • numpy(1.26.2)
  • keplergl(0.3.2)

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

使用pip安装

安装:

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

更新:

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

1.2 用户手册与视频教程

用户手册

基于隐马尔可夫模型(HMM)的地图匹配算法动画版!学不会你来打我!

一个python包搞定路网获取+地图匹配!

gotrackit地图匹配包参数详解与问题排查

QGIS路网拓扑显示、底图加载、样式复用、map保存

2. 地图匹配问题

car_gps.png

where_car.png

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

main.png

main.png

main.png

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

Uploaded Source

Built Distribution

gotrackit-0.2.1-py3-none-any.whl (167.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gotrackit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 37393a6ed43ca66112a5969833b8e02a3deebbef9eb9ad26d377949791de1be1
MD5 3b4549cf3746f9a5bc8474c2a1e519b9
BLAKE2b-256 1ab94d972ce19a2bd9b2f3589a6b1fe0746346c72cebcfb19f2415e830d8b6ab

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gotrackit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa0e79b5091e28852e82335060a7e7304262e14aff16831a79e6602d4b52b17d
MD5 12e8dfbd7dfe9bc570065e2a3edcbee3
BLAKE2b-256 df11bba29aeacab93d00760b75b0a522c6ada988f241807e8fd8600f38499e59

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