Skip to content

plechoss/mobilipy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Demo app

A simple demo app developed with Streamlit is available at this link.

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/')

About

A Python package for mobility analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages