Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Python package to link vehicle-for-hire trips together into driver work shifts

License

Notifications You must be signed in to change notification settings

CityofToronto/bdit_triplinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Triplinker

Triplinker is a Python package to link vehicle-for-hire trips together into driver work shifts, allowing statistics of the driver population to be estimated from trip origin-destination (OD) records. It is authored and maintained by the Big Data Innovation Team at the City of Toronto.

While Triplinker can be used on any set of origin-destination data, it was built for analyzing OD data from ridesourcing platforms like Uber and Lyft, as part of a technical report for the the City's Vehicle-for-Hire bylaw review. Consequently, it assumes a variable supply of active vehicles rather than a fixed fleet of vehicles operated by drivers with regular work shifts (as with eg. taxi companies).

Usage

Dependencies

networkx>=2.2
numpy>=1.16
pandas>=0.24
tqdm>=4.32
pytest>=5.0.0
python-coveralls>=2.9
pytz>=2018.3
ortools>=6.7

Installation

To import triplinker, add this folder to the Python PATH, eg. with

import sys
sys.path.append('<FULL PATH OF bdit_triplinker>')

Testing

To test the package, run the following in this folder:

pytest -s -v --pyargs triplinker

Project Status

Build Status

Coverage Status

License

Triplinker is licensed under the GNU General Public License v3.0 - see the LICENSE file.

About

Python package to link vehicle-for-hire trips together into driver work shifts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages