Skip to main content

Detect stop locations in time-ordered (lat, lon) location data

Project description

# Infostop Python package for detecting stop locations in mobility data

This package implements the algorithm described in (paper not written yet), for detecting stop locations in time-ordered location data.

## Usage Given a location trace such as:

![img](https://ulfaslak.com/files/infostop_example_code1.png)

A stop location solution can be obtained like:

![img](https://ulfaslak.com/files/infostop_example_code2.png)

Plotting it onto a map:

![img](https://ulfaslak.com/files/infostop_example_map.png)

## Advantages * Simplicity: At its core, the method works by two steps. (1) Reducing the location trace to the medians of each stationary event and (2) embedding the resulting locations into a network that connects locations that are within a user-defined distance and clustering that network. * Flow based: Spatial clusters correspond to collections of location points that contain large amounts of flow when represented as a network. This enables the recovery of locations where traces slightly overlap. * Speed: First the point space is reduced to the median of stationary points, then pairwise distances between these medians are computed using a vectorized implementation of the haversine function, and finally the resulting network at some distance threshold is clustered using the C++ based Infomap implementation. For example, clustering 70.000 location points takes aroung 16 seconds.

## Installation pip install infostop

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

infostop-0.0.4.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file infostop-0.0.4.tar.gz.

File metadata

  • Download URL: infostop-0.0.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for infostop-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e90815418d072e9fc1fbcf759ef940227552c6309b6d3ff8a70e1c2d8ae85529
MD5 7f0ecc7bd485fe3ad090ab468bc2213a
BLAKE2b-256 853347a4680a9c4bab5c2e540341c0def035c8122f58bf4ccfec774452e60c35

See more details on using hashes here.

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