Skip to main content

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

Project description

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

PyPI version

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, u-turn and straight movement are inserted to represent detailed behavior at intersections.

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

  • 🚸 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 引用

  • Hasada, H., Flexible Foundational Tools for Identifying Detailed Pedestrian and Vehicle Movements Based on Street Structure (preprint).
    羽佐田紘之, 街路構造に基づいて歩行者・車両の詳細な移動を推定する柔軟な基盤技術の開発 (preprint).

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 インストール

pip install hosha-network

Usage 使い方

from hosha_network import develop_hosha_network

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

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, length (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.

Other optional keyword arguments can be used for fine-tuning the construction process.

日本語

  • link_df: link_id, from_node_id, to_node_id, length を含むデータフレーム (GMNS フォーマットに準拠).
  • node_df: node_id, x_coord, y_coordを含むデータフレーム (GMNS フォーマットに準拠、EPSG:4326のみ対応).
  • output_dir: 結果を保存する出力先ディレクトリ.

他のオプションのキーワード引数を使用して,構築方法を調整することも可能です.

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-1.0.0.tar.gz (24.1 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-1.0.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hosha_network-1.0.0.tar.gz
Algorithm Hash digest
SHA256 278c09395da4e32caeb39185b7307d9ce7bf6beed9b1c5c88b945b972bfd39a5
MD5 ca18b5335d0d7c10e0d385594696fd2a
BLAKE2b-256 c5c003fb50862a5376cbffc7a0e3663218d4a469fef678c32450750eec77355f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hosha_network-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 22.0 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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 999d3d9f365c2bd208facc54728ed59cb0ee617c19c300ed6e4f42566a7d6a8b
MD5 fc07993a1d1244b883e103fb76016ad8
BLAKE2b-256 eb295b857b17bc1e377e976072f76ebe6cf6918c8401d31df18eeed35bfd973e

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