Skip to main content

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


Download files

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

Source Distribution

TTEkits-0.1.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

TTEkits-0.1.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file TTEkits-0.1.1.tar.gz.

File metadata

  • Download URL: TTEkits-0.1.1.tar.gz
  • Upload date:
  • Size: 13.6 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

Hashes for TTEkits-0.1.1.tar.gz
Algorithm Hash digest
SHA256 52d9166e4dbac0f9293255f68eb28d229b1f06ea2ab413c88b3bf083d70e213b
MD5 a9859eba5979a87a0f36390fc08ffb0e
BLAKE2b-256 7d0697989203af487696b43c79810e7e7f52156f0287d78dbc2f34c4ef93f818

See more details on using hashes here.

File details

Details for the file TTEkits-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: TTEkits-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 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

Hashes for TTEkits-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 284284e1ead50550b99ec21cfbe25a94c3d18283e5b2c63485b5a9184dfa9aee
MD5 26a18b48f8f4eb8427ddebedd753df60
BLAKE2b-256 9a4d64439cc7d8da7fec9f455b925a627b98364e310f5d0b13286e3371d2a22b

See more details on using hashes here.

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