Observed since 20 Oct, 18:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Tools for modeling activity spaces including distance-to-home, home range, and IREM models.
ActivitySpace Tools is a Python library for modeling individual activity spaces and analyzing human mobility patterns using geospatial data.
The library provides tools for computing distance-based mobility metrics, generating activity space geometries, modeling exposure surfaces, and analyzing spatial properties of activity spaces.
The package was developed primarily for research applications in:
The methods implemented in ActivitySpace Tools originate from peer-reviewed research on human activity spaces, environmental exposure, and mobility behavior.
The package implements computational tools based on the following research contributions.
Hasanzadeh, K., Laatikainen, T., & Kyttä, M.
Where is the neighborhood? A spatiotemporal perspective on human activity spaces.
This work discusses how activity spaces can be conceptualized beyond static residential neighborhoods and introduces approaches for representing individualized spatial behavior using mobility data.
Hasanzadeh, K., et al.
Capturing environmental exposure through activity space modeling.
This research demonstrates how daily mobility patterns influence the environmental conditions individuals are exposed to.
Hasanzadeh, K.
Individualized Residential Exposure Model (IREM).
IREM integrates
to generate continuous spatial exposure surfaces that represent how individuals experience environments through their daily mobility.
ActivitySpace Tools currently provides four main modules.
Computes distance-to-home metrics for activity locations.
Useful for studying:
Generates activity space polygons based on home locations and visited destinations.
These polygons approximate the spatial extent of an individual's daily activity area.
The Individualized Residential Exposure Model (IREM) produces raster exposure surfaces representing how individuals experience the spatial environment during daily mobility.
Inputs include:
Additional functions for analyzing activity spaces and exposure surfaces:
Install from PyPI:
pip install activity-space-tools
or development install:
pip install git+https://github.com/Urban-GeoInformatics/activity-space-tools.git
import geopandas as gpd
from activityspace.spider import add_distance_to_home
poi = gpd.read_file("eep.shp")
home = gpd.read_file("Home.shp")
result = add_distance_to_home(
poi=poi,
home=home,
uniqueID="uid"
)
print(result.head())
Typical workflows require three spatial datasets.
Point dataset representing individuals' home locations.
Example fields:
uid
geometry
Point dataset representing visited destinations.
Example fields:
uid
DESTid
weight
travelMode
geometry
Line dataset representing travel paths between home and destinations.
Example fields:
uid
DESTid
geometry
A typical workflow using ActivitySpace Tools:
Conceptually the workflow looks like:
Home points
↓
Activity points
↓
Routes
↓
IREM exposure surfaces
↓
Activity space analysis
The library depends on commonly used geospatial Python libraries:
Kamyar Hasanzadeh University of Helsinki
If you use this library in academic work, please cite both the software and the associated scientific publications.
Suggested citation:
Kamyar. (2026). Urban-GeoInformatics/activity-space-tools: 0.1.0 (0.1.0). Zenodo. https://doi.org/10.5281/zenodo.19036426
MIT License
Copyright (c) 2026 Kamyar Hasanzadeh
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction.
The software is provided "as is", without warranty of any kind.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.1 | 24 May 2026 | 7 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 18:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c495b5427da8c2449aa4d85aaad862fd9e5a99b0ca406cf233ab8f0eb9a5fff8