Skip to main content

Human mobility and movement analysis framework.

Project description

The trackintel Framework

Binder Version Build Status codecov.io Documentation Status

Focusing on human mobility data, trackintel provides functionalities for data quality enhancement, integrating data from various sources, performing quantitative analysis and mining tasks, and visualizing the data and/or analysis results. In addition to these core functionalities, packages are provided for user mobility profiling and trajectory-based learning analytics.

You can find the documentation on the trackintel documentation page.

Target Users and Assumptions

trackintel is intended for use mainly by researchers with:

  • Programming experience in Python
  • Proficiency in movement data mining and analysis

These assumptions concern your data:

  • Movement data exists in csv, (geo)json, gpx or PostGIS format
  • Movement data consists of points with x,y-coordinates, a time stamp, a user ID, and an optional accuracy
  • One of the following transportation modes was used at any time: car, walking, bike, bus, tram, train, plane, ship, e-car, e-bike
  • The tracking data can be reasonably segmented into
    • positionfixes (raw tracking points)
    • triplegs (or stages) (aggregated tracking points based on the transport mode)
    • trips (aggregated activities based on the visited destination / staypoint)
    • tours (aggregated trips starting / ending at the same location / staypoint)

Installation and Usage

This is not on pypi.org yet, so to install you have to git clone the repository and install it with pip install . or pipenv install -e .. If you choose the second approach and you are on Windows, you might have to install individual wheels (e.g., from https://www.lfd.uci.edu/~gohlke/pythonlibs). For this, activate the environment using pipenv shell and install everything using pip install ... (in particular: GDAL, numpy, sklean, Rtree, fiona and osmnx). You can quit this shell at any time using exit.

You should then be able to run the examples in the examples folder or import trackintel using:

import trackintel

Development

You can install trackintel locally using pip install .. For quick testing, use trackintel.print_version().

Testing is done using pytest. Simply run the tests using pytest in the top-level trackintel folder. In case you use pipenv, install pytest first (pip install pytest), then run pytest using this version: python -m pytest. The use of fixtures for data generation (e.g., trips and trackpoints) is still an open todo. As for now, there are some smaller datasets in the tests folder.

Versions use semantic numbering. Commits follow the standard of Conventional Commits. You can generate them easily using Commitizen.

You can find the development roadmap under ROADMAP.md.

Documentation

The documentation follws the pandas resp. numpy docstring standard. In particular, it uses Sphinx to create the documentation. You can install Sphinx using pip install -U sphinx or conda install sphinx.

If you use additional dependencies during development, do not forget to add them to autodoc_mock_imports in docs/conf.py for readthedocs.org to work properly.

You can then generate the documentation using sphinx-build -b html docs docs.gen. This will put the documentation in docs.gen, which is in .gitignore.

Continuous Integration

There are travis and appveyor CIs set up for Unix/Windows builds. You can find the corresponding scripts in .travis.yml and appveyor.yml. Adding Coveralls is an open todo.

Contributors

trackintel is primarily maintained by the Mobility Information Engineering Lab at ETH Zurich (mie-lab.ethz.ch). If you want to contribute, send a pull request and put yourself in the AUTHORS.md file.

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

trackintel-0.2.0.tar.gz (42.2 kB view details)

Uploaded Source

Built Distribution

trackintel-0.2.0-py3-none-any.whl (57.1 kB view details)

Uploaded Python 3

File details

Details for the file trackintel-0.2.0.tar.gz.

File metadata

  • Download URL: trackintel-0.2.0.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

File hashes

Hashes for trackintel-0.2.0.tar.gz
Algorithm Hash digest
SHA256 985876b0e4b8af95356b44881e162ed5250c36ca91aebb3e0f647d58b7e541e2
MD5 aebd6aa396a8a5ebfaafc9f963a41210
BLAKE2b-256 f3868483beb9c28d635b7da2fffb22a68a7648766bc2302c3e741cc2dcfce702

See more details on using hashes here.

File details

Details for the file trackintel-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: trackintel-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 57.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

File hashes

Hashes for trackintel-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07926b344790e9586c0d60b490797d4b48e725d7c840672d0280101889a4b420
MD5 b44d26e47523878fb64af6c16f6d8dcf
BLAKE2b-256 bd14d74ad1113c7e3bc39a7340de082acd00802180960858a9e7a7e221747bc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page