This is a travel time estimation Python Library!
Project description
Background
Twenty-first century urban planner have identified the understanding of Complex city traffic pattern as a major priority, leading to a sharp increase in the amount and the diversity of traffic data being collected. For instance, taxi companies in an increasing number of major cities have started recording metadata for every individual car ride, such as its origin, destination, and travel time. In this paper, we show that we can leverage network optimization insights to extract accurate travel time estimations from such origin-destination data, using information from a large number of taxi trips to reconstruct the traffic patterns in an entire city.
This Python Library TTEkits used the algorithm proposed by Dimitris Bertsimas et al. in the paper published in Operation Research for travel time estimation.
Install
pip install TTEkits
Before you can install TTEkits, you'll need to install some dependency libraries.
Usage
step 1: import library
from TTEkits import model
step 2: instantiation
graph_model = model.World(type=1,num=1000,sigma=0.1,reg=1000,time_limit=0.6)
step 3: model train
graph_model.train()
step 4: model test
graph_model.test()
step 5: visualization
G = ox.graph_from_place('Manhattan, New York City, New York, USA', network_type='drive')
picture = Visualization(G,type=2,manual=True)
picture.plot_real_path(-73.98215485,40.76793671,-73.96463013,40.76560211)
License
@Elon Lau
This reposity is licensed under the MIT license. See LICENSE for details.
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
File details
Details for the file TTEkits-0.0.8.tar.gz
.
File metadata
- Download URL: TTEkits-0.0.8.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa4ff918944c00e94701aaa10b458d8eaac307537dda0c68c75db003fdfeeb9a |
|
MD5 | 49a0ac27de0d8077a6f84eef03b19618 |
|
BLAKE2b-256 | 44c7a4389ad77bf16b03010286d4f154c3ab5814cef593ddaca1c3273d179b3f |
File details
Details for the file TTEkits-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: TTEkits-0.0.8-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 794d6290367a00ae4e3a1bb65b02c0074b07fdd915f4b1d019d7e36b2c254e05 |
|
MD5 | 6a7f16a6d7a2f089af79e58565637ca9 |
|
BLAKE2b-256 | bba7cdd51160e84dd33a2afe369bdb79eff7bfc1c19b0de5cf05ccf59f3d1f00 |