Skip to main content

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.

Below is an example usage of the pipeline:

##Preparation `from sdscmob import plot, preparation, waypointsdataframe, segmentation, mode_detection, legs, gtfs_helper, home_work, privacy` `w_df = waypointsdataframe.WaypointsDataFrame(data)` `df_prepared = preparation.prepare(w_df)` ##Segmentation `route_clusters_detected = segmentation.segment(df_prepared)` ##Mode detection `route_clusters_detected = mode_detection.mode_detection(route_clusters_detected)` ##Legs `legs_user = legs.get_user_legs(route_clusters_detected, user_id)` ##Home and work detection `home_location, work_location = home_work.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


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.1.tar.gz (16.2 kB view hashes)

Uploaded Source

Supported by

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