A Robust and Lightweight Map-Matching Library
Project description
Toncatsu: A Python Library for Robust Observation-based Map-matching
頑健な観測ベースのマップマッチングを行うpythonライブラリ
Overview 概要
Toncatsu is a Python library that extends the path-based map-matching logic originally developed in the GPS trajectory analysis tool Catsudon (Hara, 2017). This method improves robustness against GNSS errors by associating GPS observations with the nearest links, rather than the nearest nodes, enabling more stable and accurate estimation of movement paths across varying network granularities.
Toncatsuは、原(2017)が提案した移動軌跡解析ツールCatsudonのマップマッチング手法を発展させたPythonライブラリです。観測点を最も近いノードではなく最も近いリンクに対応づけることで、ネットワーク構造に依存しない、頑健なマップマッチングが可能になります。GNSS誤差への耐性を持ち、リンクの分割状況に左右されずに、より現実に近い経路推定が行えます。
Features 特徴
- 🌍 Link-based matching: Reduces sensitivity to sparse or dense node distributions
リンク基準のマッチング:ノードの疎密による経路のばらつきを低減 - 🚀 Fast search via kd-tree: Efficient nearest-link search using spatial trees
kd-treeを活用した高速探索:空間木構造により近傍リンクを迅速に取得 - 🐍 Pure Python / GeoPandas-based: Easy to install and integrate
GeoPandasベースの純Python実装:環境構築が容易で拡張性が高い - 🧪 Benchmark tested: Evaluated using standardized test datasets
ベンチマーク検証済み:標準データセットを用いた評価を実施
Citation 引用
Coming soon!
References 参考文献
- 原祐輔. 2017. “GPS軌跡解析器の開発と長期観測データを用いた新たな個人属性の提案.” In 第 55 回土木計画学研究発表会・講演集.
Installation インストール
pip install toncatsu
(Coming soon to PyPI / PyPI公開予定)
Usage 使い方
from toncatsu import toncatsu
# Required DataFrames: node_df, link_df, observation_df
toncatsu(node_df, link_df, observation_df, output_dir="./output")
Function: toncatsu() 関数の説明
Performs map-matching using GMNS-format node/link data and GPS observations. GMNS形式のノード・リンク・GPS観測データを用いてマップマッチングを実行します。
Parameters 引数:
English
node_df: DataFrame with columns:'node_id','x_coord','y_coord'link_df: GeoDataFrame with columns:'link_id','from_node_id','to_node_id','geometry'observation_df: DataFrame with columns:'id','x_coord','y_coord'output_dir: Output directory for saving resultssplit_length: Segment length for link splitting in meters (default: 10)
日本語
node_df:'node_id','x_coord','y_coord'を含むDataFramelink_df:'link_id','from_node_id','to_node_id','geometry'を含むGeoDataFrameobservation_df:'id','x_coord','y_coord'を含むDataFrameoutput_dir: 結果を保存する出力先ディレクトリsplit_length: リンク分割の長さ(m) (デフォルト: 10)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toncatsu-0.1.1.tar.gz.
File metadata
- Download URL: toncatsu-0.1.1.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afe83fd229606c7b65ecfa8494c249bbb7cda2d6571cc91ca2a9894043f5ad62
|
|
| MD5 |
89af6a6d181b094c5fe865ea60f72bf3
|
|
| BLAKE2b-256 |
418ee81b8eb98f52a1cbff2f98fb769612f6512f69847536b4a0696b8fb53074
|
File details
Details for the file toncatsu-0.1.1-py3-none-any.whl.
File metadata
- Download URL: toncatsu-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45eb324c27e8500cc5a882c73090ebb5eb7a18e98b3f8887077179684b1fe89d
|
|
| MD5 |
c5b4f01ff6b7bbab7d6a0cadfa3b4142
|
|
| BLAKE2b-256 |
718fcf38aab8ec97fcf5fde89d3ccba94f2d7f5ef76466909340ede83513b337
|