Skip to main content

A Python library to construct detailed pedestrian-vehicle layered networks from macro-level road data.

Project description

hosha-network (歩車ネットワーク)

A Python library to construct detailed pedestrian-vehicle layered networks from macro-level road data.

マクロレベルな道路データから,歩行者と車両の詳細な動態を表現する歩車分離ネットワークを構築する Python ライブラリです.

Overview 概要

hosha-network is a Python library for constructing a micro network that expresses the detailed dynamics of pedestrians and vehicles from a macro road network consisting of undirected links and intersection nodes. By extending intersections to add entrance/exit nodes and transition links, it creates a directed network divided into layers for pedestrians and vehicles.

hosha-network は,無向リンクと交差点ノードからなるマクロな街路ネットワークから,歩行者と車両の詳細な動きを表現できるミクロなネットワークを構築するための Python ライブラリです.交差点を拡張して遷移リンクや出入口ノードを挿入し,歩行者と車両のレイヤーに分かれた有向ネットワークを作成します.

Features 特徴

  • 🚶‍♂️🚗 Separate layers for pedestrians and vehicles: Sidewalks are generated on both sides of vehicle lanes, enabling independent analysis for pedestrians and vehicles.

  歩行者と車両のレイヤー分離:車道の両外側に歩行空間を設けることで,歩行者と車両を別レイヤーで扱い,それぞれの移動特性に基づいた解析が可能になります.

  • 🚥 Vehicle Turning movement representation: Transition links for vehicle right-turn, left-turn, and straight movement are inserted to represent detailed behavior at intersections.

  車両の遷移動作の明示:直進・右左折を表す遷移リンクを交差点に挿入し,車両の交差点内の詳細な動作を再現します.

  • 🚸 Pedestrian crossing movement representation: Crossing links for pedestrians are placed around vehicular transitions, clearly capturing pedestrian crossing behavior.

  歩行者の横断行動の明示:車両の遷移リンクの外側に歩行者用の横断リンクを設け,横断行動を明確に表現します.

  • 📍 Midlink segmentation: Road segments are divided at their midpoints, enabling precise modeling of trip origins and destinations even along road sections.

  中点での道路分割:歩行空間・車道リンクは中点で分割され,交差点以外の道路区間でも正確な出発・到着(OD)表現が可能になります.

Citation 引用

Coming soon!

Acknowledgment 謝辞

This library includes the results of Cross-ministerial Strategic Innovation Promotion Program (SIP) 3rd Phase, “Development of Smart Mobility Platform” promoted by Council for Science, Technology and Innovation, Cabinet Office. (Project Management Agency:New Energy and Industrial Technology Development Organization (NEDO) (Project Code JPNP23023))

本ライブラリには,内閣府総合科学技術・イノベーション会議の下で推進する「戦略的イノベーション創造プログラム(SIP)第3期/スマートモビリティプラットフォームの構築」(研究推進法人:国立研究開発法人新エネルギー・産業技術総合開発機構)(NEDO管理番号:JPNP23023)の成果が含まれています.

References 参考文献

  • 羽佐田紘之, 池谷風馬, 鳥海梓, 本間裕大, and 大口敬. 2025. “歩車ネットワークの構築と「安心とこてくゾーン」の設定手法理論の検討.” In 第71回土木計画学研究発表会・講演集.

Installation インストール

Coming soon!

Usage 使い方

from hosha_network import develop_hosha_network

develop_hosha_network(link_df, node_df, output_dir="./output", contract=False)

Function 関数

Function develop_hosha_network() generates a layered pedestrian-vehicle network from macro-level road data in GMNS format.

関数develop_hosha_network() は、GMNS フォーマットのマクロ道路データから歩車分離ネットワークを構築します.

Parameters 引数:

English

  • link_df: DataFrame with columns: link_id, from_node_id, to_node_id (follows GMNS format)
  • node_df: DataFrame with columns: node_id, x_coord, y_coord (follows GMNS format with EPSG:4326)
  • output_dir: Output directory for saving results.
  • contract: Whether to contract pedestrian transit links in intersections not for crossing (default: False).

日本語

  • link_gdf: link_id, from_node_id, to_node_id を含むデータフレーム (GMNS フォーマットに準拠).
  • node_df: node_id, x_coord, y_coordを含むデータフレーム (GMNS フォーマットに準拠、EPSG:4326のみ対応).
  • output_dir: 結果を保存する出力先ディレクトリ.
  • contract: 横断用でない歩行者遷移リンクの縮約を実行するか(デフォルト: False).

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

hosha_network-0.1.3.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hosha_network-0.1.3-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hosha_network-0.1.3.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for hosha_network-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4d210828bb418574ae8a581e512e57ca925a48acfbc5a0264f53afc82755baa6
MD5 3746dde9133e3e5bf33e81571b2aa24e
BLAKE2b-256 8b52196a448bd3332e2b26876de69479b74277fa0b719c362c259131794db738

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hosha_network-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for hosha_network-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9bb9395b265888a01af3851f5a74bdcdb99abb6e3359709ac03cb04f0c69765c
MD5 8805f238edb09fb42d68512f9276b6e3
BLAKE2b-256 5f3cebec8fe67d564f9c3e57a6e373a36c79810207731ab9bcff2dd64d7d76f5

See more details on using hashes here.

Supported by

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