Python Package to perform simple Traffic Interventions.
Project description
Traffic-Interventions
Installation
python -m pip install --upgrade pip
pip install trafficinterventions xml
Documentation
All relevant files can be found here
Sample Usage : Edge Manipulation
import trafficinterventions
ce = trafficinterventions.ChangeEdges.ChangeEdges(fileName="sample.xml")
# Sample Intervention
ce.disallowAppendTypes(["bus"], ["-100"], "new_file.xml")
Sample Usage : Lane Manipulation
import trafficinterventions
cl = trafficinterventions.ChangeLanes.ChangeLanes(fileName="sample.xml")
# Sample Intervention
ce.changePriorityLanes(["highway.cycleway"], 100, "new_file.xml")
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
Close
Hashes for trafficinterventions-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e023de5d06dcb0d9eda888ac7f3245461e9423bcbed379b08533b0c2a69d59eb |
|
MD5 | 4e36ddf4359db761a3742479d204691f |
|
BLAKE2b-256 | 51258df768c995e5fc474eb4b1f38252d3902d10003eadd881caea1cca8371de |
Close
Hashes for trafficinterventions-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc90a1b95517c6e12867c7e20f785d9042702b7d747be0672b8f32a1b6f5837a |
|
MD5 | 24a5028d189d5abe621cb1c6f3cc28d2 |
|
BLAKE2b-256 | 32cf6ea8bae8c8f2ebabad9b61408ec1f3cf23f23b7faac4c7cc8b55b4bdd4d8 |