A mobility analysis package developed at the Swiss Data Science Center
Project description
Mobilipy
Mobilipy is a mobility analysis package that lets you identify complete trip information (meaning segmentation into trips and activities, mode detection as well as home and work location detection) from raw GPS data. It also enables working with GTFS data. In addition to that, it proposes two ways to make the data more private.
For more information refer to the official documentation.
Installation
pip install mobilipy
Below is an example usage of the pipeline:
Preparation
from mobilipy import gtfs_helper, legs, mode_detection, poi_detection, plot, preparation, privacy, segmentation, waypointsdataframe
w_df = waypointsdataframe.WaypointsDataFrame(data)
df_prepared = preparation.prepare(w_df)
Segmentation
segments_detected = segmentation.segment(df_prepared)
Mode detection
segments_modes_detected = mode_detection.mode_detection(segments_detected)
Legs
legs_user = legs.get_user_legs(segments_modes_detected, user_id)
Home and work detection
home_location, work_location = poi_detection.detect_home_work(legs_user, df_prepared)
Privacy
obfuscated_df, shifted_home, shifted_work = privacy.obfuscate(w_df, [home, work])
aggregated_data = privacy.aggregate(w_df)
GTFS
gtfs_helper.GTFS_Helper(directory='./gtfs/')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mobilipy-0.1.11.tar.gz
(17.7 kB
view details)
File details
Details for the file mobilipy-0.1.11.tar.gz
.
File metadata
- Download URL: mobilipy-0.1.11.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9664e206b265b48fc5527fedb747468a557aaac347ce8e1eae0c9f96e56aaec5 |
|
MD5 | 5c429d2666f2ccaa5c26bc15a7626b41 |
|
BLAKE2b-256 | 76cd4d613add368692bec77fe72ef36c1e96892d5e893a6b946b6c8f58b72880 |