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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27185632fc901ddc79c889bc908ed5c0e0d42373a8cba748a0feda93f07af008 |
|
MD5 | 896576a397979c04a1cf6d190f01c1c8 |
|
BLAKE2b-256 | 015a68f14a09e3cf5dcf981f1704b255a35d4d445d22cc751156934e95bd1d4d |
Close
Hashes for trafficinterventions-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11286f6a2064733bd33e56db1baf02d7331c1a42673a6df9ce335c902d2ddbdd |
|
MD5 | 3b044e0e9a9dd19b419d54488348ffb3 |
|
BLAKE2b-256 | 5554eec9f55cd3262c69558e7fa0cd284a707c652d64d4c690e42852b60421ca |