Code Monkey home page Code Monkey logo

detourfactor's Introduction

Detour factors from the Mobility and Transport Microcensus 2010 and 2015

This code computes the detour factor for public transport and cars and motorbikes, by distance categories (0.5-5km, 5-10km, 10-25km, 25-50km, 50-75km, 75-100km, 100+km). To know more about the detour factor, check e.g.:

Chalasani, V. Saikumar, O. Engebretsen, et K. W. Axhausen. Precision of Geocoded Locations and Network Distance Estimates. Journal of Transportation and Statistics 8, nᵒ 2 (2005): 15.

This code uses data from the Mobility and Transport Microcensus (MTMC) 2010 and 2015. The results are available as CSV-files.

Results

Results 2010

Global correction factor (weighted average): 1.51

Correction factor for cars and motorbikes (weighted average): 1.54

Correction factor for public transport (weighted average): 1.34

Correction factor for bikes (weighted average; careful: not based on routed distances, but on distances estimated by the respondent): 1.70

Correction factor by transport mode and distance categories (weighted average, median & 10th percentile), see CSV-files:

Results 2015

Global correction factor (weighted average): 1.45

Correction factor for cars and motorbikes (weighted average): 1.47

Correction factor for public transport (weighted average): 1.33

Correction factor for bikes (weighted average; careful: not based on routed distances, but on distances estimated by the respondent): 1.61

Correction factor for walking (weighted average; careful: not based on routed distances, but on distances estimated by the respondent): 1.53

Correction factor by transport mode and distance categories (weighted average, median & 10th percentile), see CSV-files:

Getting Started

These instructions will get you a copy of the project up and running on your local machine for reproducing the result and understanding how it has been generated.

Prerequisites

To run the code itself, you need python 3, pandas and numpy.

For it to produce the results, you also need the raw data of the Transport and Mobility Microcensus 2010 and 2015, not included on GitHub. These data are individual data and therefore not open. You can however get them by filling in this form in German, French or Italian. The cost of the data is available in the document "Mikrozensus Mobilität und Verkehr 2015: Mögliche Zusatzauswertungen"/"Microrecensement mobilité et transports 2015: Analyses supplémentaires possibles".

Run the code

Please copy the files etappen.csv from 2010 and etappen.csv from 2015 that you receive from the Swiss Federal Statistical Office (FSO) in the folders "mtmc2010/data/source" and "mtmc2015/data/source" respectively. Then run run_detourfactor.py.

DO NOT commit or share in any way these two CSV-files! These are personal data.

Contact

Please don't hesitate to contact [email protected] if you have questions or comments about this code.

detourfactor's People

Contributors

antonindanalet avatar areschweiz 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.