A tool for generating zone-to-zone travel demand based on grid cells
Project description
GRID2DEMAND: A tool for generating zone-to-zone travel demand based on grid cells
Introduction
Grid2demand is an open-source quick demand generation tool based on the trip generation and trip distribution methods of the standard 4-step travel model for teaching transportation planning and applications. By taking advantage of OSM2GMNS tool to obtain routable transportation network from OpenStreetMap, Grid2demand aims to further utilize Point of Interest (POI) data to construct trip demand matrix aligned with standard travel models.
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("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="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.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 532fe7df0a4b5ad1f122135a3ae951d390d4ab8a9406770d93e3234396c92229 |
|
MD5 | 15ff1a32cfac66ffaaecb01de2d07b61 |
|
BLAKE2b-256 | 78929cbab0f273b67e387036a83210ff1df8f75a1871f4f9b359ed4d17cb80a6 |