A quick trip generation and distribution tool based on the four-step travel mode
Project description
GRID2DEMAND: A tool for generating zone-to-zone travel demand based on grid cells
Introduction
Gird2demand is an open-source trip generation and distribution tool for teaching transportation planning and applications. It generates zone-to-zone travel demand based on alphanumeric grid zones. Users can obtain zone-to-zone and node-to-node travel demand with a few lines of python code based on OpenStreetMap and OSM2GMNS.
Quick Start
Users can refer to the template code and test data set to have a quick start.
Installation
pip install grid2demand
If you meet installation issues, please refer to the user guide for solutions.
Simple Example
import grid2demand as gd
gd.ReadNetworkFiles("./data_folder")
gd.PartitionGrid(number_of_x_blocks=None, number_of_y_blocks=None, cell_width=500, cell_height=500, latitude=30)
gd.GetPoiTripRate(trip_rate_folder = "./data_folder", trip_purpose=1)
gd.GetNodeDemand()
gd.ProduceAccessMatrix(latitude=30,accessibility_folder=None)
gd.RunGravityModel(trip_purpose=1, a=None, b=None, c=None)
gd.GenerateAgentBasedDemand()
Visualization
Open QGIS and add Delimited Text Layer of the output files.
User guide
Users can check the user guide for a detailed introduction of grid2demand.
Project details
Release history Release notifications | RSS feed
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
Hashes for grid2demand-0.0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 964820d1a6f02e300a8fa86345b991256eee5054c7bfd5eb3f92d1db9bde84bb |
|
MD5 | 9c8e1c34982bcc3151cc9fe28ac4eca3 |
|
BLAKE2b-256 | b12f39bf8df8f1e4b388c88b8d8517fd6d3096b83589fd2da7c0c030c144caa6 |