Skip to content

sharedstreets/speed-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

speed-prediction

An OSRM predictive speed profiler using Uber Movement Speed data

screenshot

Install

git clone 
[email protected]:sharedstreets/speed-prediction.git
cd speed-prediction
npm install

Download

Download all Uber speed files for a city into your project directory, along with an OSM extract for the corresponding area.

Run

This will run the process with 8GB of RAM. It is not necessary to provide more RAM, and the process will likely run with much less. Expect the entire process to take about 2 hours for a major metropolitan area.

time node --max-old-space-size=8192 index.js

Format

The output format is the standard OSRM csv format for traffic profiles described here. There is one profile per day of week and hour of day, 0 indexed. For example, Sunday at midnight is described in the profile 0-0, whereas the Tuesday noon profile is described in 2-12. OSRM is designed to load exactly one profile at a time, so for ETA or isochrone analysis, you would cycle through your times of interest, loading a new profile after each batch.

Analysis Demo

To demonstrate how these profiles can be used, a demo script is provided, called demo.js. This demo assumes you have downloaded and processed profiles for San Francisco, CA. The script will load each profile in succession, use OSRM to generate a predicted ETA for each control route, then output the data into a set of charts. These charts show how congestion changes over the course of a typical week across routes of interest.

License

This code is provided under the MIT license. Note that this library uses OpenStreetMap data, licensed under the ODBL, as well as Uber Movement data, licensed under CC BY-NC 3.0 US. Both licenses require attribution and additional restrictions should be analyzed before using.

About

An OSRM predictive speed profiler using Uber Movement Speed data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published