Skip to contents

Analysing up to 1 week of data

Quickly download and analyse just a few days of mobility data

spod_get_zones()
Get zones
spod_get()
Get tabular data
spod_disconnect()
Safely disconnect from data and free memory

Analysing long time periods (months or even years)

Download data for longer periods, convert them into analysis ready format such as DuckDB or Parquet for out-of-memory analysis of this large data

spod_get_zones()
Get zones
spod_download()
Download the data files of specified type, zones, and dates
spod_convert()
Convert data from plain text to duckdb or parquet format
spod_connect()
Connect to data converted to DuckDB
spod_disconnect()
Safely disconnect from data and free memory

Helper functions

spod_codebook()
View codebooks for v1 and v2 open mobility data
spod_available_data()
Get available data list
spod_get_valid_dates()
Get valid dates for the specified data version
spod_set_data_dir()
Set the data directory
spod_get_data_dir()
Get the data directory