Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trafficinterventions-1.0.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

trafficinterventions-1.0.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page