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.
Metadata
Release files for grid2demand 0.0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| grid2demand-0.0.1.7.tar.gz | 11.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| grid2demand-0.0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.6 kB
Release files / grid2demand-0.0.1.7.tar.gz
| Download URL | grid2demand-0.0.1.7.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e5f45b376d954bf2571d45000ed635671ce984404d4143520c2d230c7a8ce57
|
|
BLAKE2b-256 checksum How to use checksums |
d60af9afcb60ca9c4a928570590aa297a50d648eb65ac3c6bbad95bf7e3b870c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.6
|
Release files / grid2demand-0.0.1.7-py3-none-any.whl
| Download URL | grid2demand-0.0.1.7-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19c82cf67e44e819ac0e2648c2772d7cf763b2ad7c9c8907f32e4121b79d41f9
|
|
BLAKE2b-256 checksum How to use checksums |
3127bf7ea9fdfecb0b161f08d3f7f3be00c99e8b06bba0f40df7d0ae919c7a2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.6
|
Security for grid2demand 0.0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.