GithubHelp home page GithubHelp logo

yxu138 / routingbehavior Goto Github PK

View Code? Open in Web Editor NEW

This project forked from humnetlab/routingbehavior

0.0 0.0 0.0 479 KB

Understanding vehicular routing behavior with location-based service data

License: MIT License

Python 97.81% R 2.19%

routingbehavior's Introduction

Understanding Routing Behavior with LBS Data

Source code for "Understanding vehicular routing behavior with location-based service data"

Developed by Yanyan Xu ([email protected]) and Marta Gonzalez, Human Mobility and Networks Lab (http://humnetlab.berkeley.edu/), UC Berkeley

This data analysis framework process the raw LBS data, extract the vehicule trips, and detect routinng behavior. For each active LBS use, we select her top OP pair with the largest number of trips for further routing behavior analysis. The simple rule based route dectection is illustrated as follows,

alt text

To understand the individual routing behavior, we connect the user's number of routes with the travel distance, the number of trips, the departure time, the travel time index and the buffer index. Empirical results demonstrate that during the peak hours, travelers tend to reduce the impact of traffic congestion by taking alternative routes.

This work is implemented with Python3.8. Related packages include numpy, scipy, matplotlib, scikitlearn, geojson, fiona, rtee.

Struture of source code:

step0_user_selection.py:

(1) analysis of the raw LBS data

(2) select active users from the raw LBS data

step1_trip_processing.py

(1) trip segmentation

(2) vehicular trips detection

(3) find home location of LBS users

(4) origin and destination detection

(5) route detection

step2_routing_behavior.py

(1) Correlation between routing behavior and travel characteristics

(2) Calcualte travel time index (TTI) and buffer index (BI), and relate them to the routing behavior

step3_ODmatrix.py

(1) Expand the travel demand of LBS users to the population level

(2) Compare the OD matrix with the NCTCOG travel survey

routingbehavior's People

Contributors

yxu138 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.