Skip to main content

Toolbox for building spatial data and extracting spatial measures from raw GPS data

Project description

Many data are not readily in spatial format. For example, data from wearable devices, surveys, and social media platforms such as Facebook and Twitter have GPS location information, but usually in raw Lat/Long format. For social scientists who do not have strong background in Geographic Information System (GIS), compiling and analyzing spatial data from the aforementioned sources can be tedious and error-prone. GPS2space is an open source solution to this issue.

The primary goals of GPS2space are:

  • to build spatial data from raw Lat/Long coordinate pairs and make the process less painful for social scientists with little GIS background
  • to build minimum bounding geometry from Points using buffer, convex hull methods, and use activity space as building box to calculate shared space at different scales
  • to calculate the nearest distance from user-defined landmarks

GPS2space can be used in studies such as mobility, behavioral science, transportation, etc. For more information, please see the Documentation

Currently, GPS2space has the following functionalities:

  • geodf.df_to_gdf: This function builds unprojected GeoDataFrame from DataFrame with Lat/Long coordinate pairs
  • space.buffer_spa: This function calculates buffer-based activity space with user-defined level of aggregation, buffer distance, and projection
  • space.convex_space: This function calculates convex hull-based activity space with user-defined level of aggregation and projection
  • dist.dist_to_point: This function calculates nearest Point-Point distance with user-defined projection
  • dist.dist_to_poly: This function calculates nearest Point-Polygon distance with user-defined projection and search radius

GPS2space relies on GeoPandas, Shapely, and SciPy.

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

gps2space-0.3.1.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file gps2space-0.3.1.tar.gz.

File metadata

  • Download URL: gps2space-0.3.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for gps2space-0.3.1.tar.gz
Algorithm Hash digest
SHA256 615e0278350dbc5c843eee3dcf6e309dc579328673592da9e7b9a6a81f24d148
MD5 3b06c747979c06de7b6ab978a0825662
BLAKE2b-256 5a350f7d5746f954ed743f6d1eb5fa6c72418358cc88bbd6ddcbb2deea243f54

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