Skip to main content

Mobile phone GPS data processor for trip generation and travel mode detection

Project description

MeowMotion Logo
Detecting Trips, OD Matrices, and Transport Modes from GPS Data
A Python package for processing geolocation data at scale
Developer & Author: Dr. Faraz M. Awan

📖 Documentation🛠 Installation🚀 Quick Start

Python 3.11 Documentation License: MIT Developed by UBDC DOI


🐾 What is MeowMotion?

MeowMotion is a Python package for processing raw GPS data to detect trips, classify transport modes, and generate Origin-Destination (OD) matrices using scalable and modular methods. Originally developed at the Urban Big Data Centre (UBDC), it supports advanced functionality such as:

  • Stay point and trip detection
  • Activity-based and demographic-based trip scaling
  • Generation of 4 OD matrix types (AM, PM, All-day, and Non-peak)
  • Machine learning-based travel mode classification

It’s an ideal tool for urban mobility researchers, transport planners, and geospatial data scientists working with mobile GPS traces or passive location data.


📖 Full Documentation

👉 Read the full docs here: https://urbanbigdatacentre.github.io/meowmotion/

The documentation includes:

  • Installation instructions
  • Data format requirements
  • End-to-end usage examples
  • Input file specifications
  • Details on OD matrix generation and model predictions

🛠 Installation

MeowMotion is a Poetry-based project.

git clone https://github.com/faraz-m-awan/meowmotion.git
cd meowmotion
poetry install

🔧 For compatibility tips and alternative setups (e.g., using uv), see the Installation Guide.

🚀 Quick Start

Here’s a minimal pipeline example (see full Quick Start guide):

from meowmotion.meowmob import getStopNodes, processFlowGenration, getActivityStats, generateOD
from meowmotion.process_data import getFilteredData
import pandas as pd

raw_df = readData()  # Load your GPS data
filtered_df = getFilteredData(raw_df, impr_acc=10, cpu_cores=4)
stdf = getStopNodes(filtered_df, time_th=300, radius=150, cpu_cores=4)
trip_df = processFlowGenration(stdf, raw_df, cpu_cores=4)
activity_df = getActivityStats(df=raw_df, output_dir='outputs', cpu_cores=4)

# Load shapefile and support files, then generate OD matrices
generateOD(
    trip_df=trip_df,
    shape=shape,
    active_day_df=activity_df,
    hldf=hldf,
    adult_population=adult_population_df,
    org_loc_cols=["origin_geo"],
    dest_loc_cols=["dest_geo"],
    output_dir="outputs",
    cpu_cores=4,
)

📬 Feedback & Support

For questions, suggestions, or collaborations, feel free to reach out via Issues or contact:

📧 ubdc-dataservice@glasgow.ac.uk

📄 License This project is licensed under the MIT License.

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

meowmotion-0.1.1.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meowmotion-0.1.1-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file meowmotion-0.1.1.tar.gz.

File metadata

  • Download URL: meowmotion-0.1.1.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.11.2 Windows/10

File hashes

Hashes for meowmotion-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ef304d713b85ba7c97289b895554ab81e6cf3d66a1c2e8e6765100c1c394060e
MD5 57f9759aee7117005a28436e9f696449
BLAKE2b-256 b7014b450a371028b61e0e3c9e291bd2e327cea4d76b7a982e23d5659b0cc34f

See more details on using hashes here.

File details

Details for the file meowmotion-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: meowmotion-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.11.2 Windows/10

File hashes

Hashes for meowmotion-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f16d6494bd36bf2abb743069daa6765cab9881b01242a5f6438a530ef14be57b
MD5 8f0002de271002b0e96e8a5f816a8e6d
BLAKE2b-256 9f5972ed1bbc37817ba18a3da188e6a193866009bb1185ca12ce173aa7a91684

See more details on using hashes here.

Supported by

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