{
  "_id": "6a3195033efcd9bda436a190",
  "Package": "spanishoddata",
  "Title": "Get Spanish Origin-Destination Data",
  "Version": "0.2.6",
  "Authors@R": "c(\nperson(\"Egor\", \"Kotov\", , \"kotov.egor@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-6690-5345\")),\nperson(\"Robin\", \"Lovelace\", , \"rob00x@gmail.com\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-5679-6536\")),\nperson(\"Eugeni\", \"Vidal-Tortosa\", role = \"ctb\",\ncomment = c(ORCID = \"0000-0001-5199-4103\"))\n)",
  "Description": "Gain seamless access to origin-destination (OD) data from\nthe Spanish Ministry of Transport, hosted at\n<https://www.transportes.gob.es/ministerio/proyectos-singulares/estudios-de-movilidad-con-big-data/opendata-movilidad>.\nThis package simplifies the management of these large datasets\nby providing tools to download zone boundaries, handle\nassociated origin-destination data, and process it efficiently\nwith the 'duckdb' database interface.  Local caching minimizes\nrepeated downloads, streamlining workflows for researchers and\nanalysts.  Methods described in Kotov et al. (2026)\n<doi:10.1177/23998083251415040>. Extensive documentation is\navailable at\n<https://ropenspain.github.io/spanishoddata/index.html>,\noffering guides on creating static and dynamic mobility flow\nvisualizations and transforming large datasets into\nanalysis-ready formats.",
  "License": "MIT + file LICENSE",
  "URL": "https://rOpenSpain.github.io/spanishoddata/,\nhttps://github.com/rOpenSpain/spanishoddata,\nhttps://doi.org/10.1177/23998083251415040",
  "BugReports": "https://github.com/rOpenSpain/spanishoddata/issues",
  "VignetteBuilder": "quarto",
  "RdMacros": "Rdpack",
  "Config/Needs/website": "rmarkdown",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nmake libicu-dev libuv1-dev libxml2-dev libssl-dev libproj-dev\nlibsqlite3-dev libudunits2-dev libx11-dev xz-utils",
  "Repository": "https://ropenspain.r-universe.dev",
  "Date/Publication": "2026-06-16 15:02:03 UTC",
  "RemoteUrl": "https://github.com/rOpenSpain/spanishoddata",
  "RemoteRef": "HEAD",
  "RemoteSha": "a69048affb8b15c3679b4f96156f8f07d104b81a",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-16 18:12:58 UTC",
    "User": "root"
  },
  "Author": "Egor Kotov [aut, cre] (ORCID: <https://orcid.org/0000-0001-6690-5345>),\nRobin Lovelace [aut] (ORCID: <https://orcid.org/0000-0001-5679-6536>),\nEugeni Vidal-Tortosa [ctb] (ORCID:\n<https://orcid.org/0000-0001-5199-4103>)",
  "Maintainer": "Egor Kotov <kotov.egor@gmail.com>",
  "MD5sum": "7f867623aa26eeaf8d235420ac49a19a",
  "_user": "ropenspain",
  "_type": "src",
  "_file": "spanishoddata_0.2.6.tar.gz",
  "_fileid": "8e365d83bb8cfcf77b36bcd29cd196a981e669ff0d63fd8b417249200366b0ed",
  "_filesize": 2810670,
  "_sha256": "8e365d83bb8cfcf77b36bcd29cd196a981e669ff0d63fd8b417249200366b0ed",
  "_created": "2026-06-16T18:12:58.000Z",
  "_published": "2026-06-16T18:25:07.251Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81731420009,
      "time": 186,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7675770714"
    },
    {
      "job": 81731420036,
      "time": 196,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7675771977"
    },
    {
      "job": 81731420008,
      "time": 162,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7675891757"
    },
    {
      "job": 81731419998,
      "time": 142,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7675961700"
    },
    {
      "job": 81730581021,
      "time": 246,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7675696766"
    },
    {
      "job": 81731419946,
      "time": 162,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7675761052"
    },
    {
      "job": 81731420085,
      "time": 135,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7675750105"
    },
    {
      "job": 81731420092,
      "time": 182,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7675768022"
    },
    {
      "job": 81731420063,
      "time": 156,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7675756230"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ropenspain/actions/runs/27638070540",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/rOpenSpain/spanishoddata",
  "_commit": {
    "id": "a69048affb8b15c3679b4f96156f8f07d104b81a",
    "author": "Egor Kotov <kotov.egor@gmail.com>",
    "committer": "Egor Kotov <kotov.egor@gmail.com>",
    "message": "remove cran submission file\n",
    "time": 1781622123
  },
  "_maintainer": {
    "name": "Egor Kotov",
    "email": "kotov.egor@gmail.com",
    "login": "e-kotov",
    "mastodon": "@EgorKotov@datasci.social",
    "bluesky": "@ekotov.pro",
    "linkedin": "in/egorkotov",
    "orcid": "0000-0001-6690-5345",
    "twitter": "@EgorKotov",
    "description": "Spatial Data Scientist, Doctoral Reseacher at @MPIDR and UPF",
    "uuid": 8681379
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "DBI",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "duckdb",
      "version": ">= 0.5.0",
      "role": "Imports"
    },
    {
      "package": "fs",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "httr2",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "memoise",
      "role": "Imports"
    },
    {
      "package": "openssl",
      "role": "Imports"
    },
    {
      "package": "parallelly",
      "role": "Imports"
    },
    {
      "package": "paws.storage",
      "version": ">= 0.4.0",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "xml2",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Suggests"
    },
    {
      "package": "flowmapblue",
      "role": "Suggests"
    },
    {
      "package": "flowmapper",
      "version": ">= 0.1.2",
      "role": "Suggests"
    },
    {
      "package": "furrr",
      "role": "Suggests"
    },
    {
      "package": "future",
      "role": "Suggests"
    },
    {
      "package": "future.mirai",
      "role": "Suggests"
    },
    {
      "package": "ggiraph",
      "role": "Suggests"
    },
    {
      "package": "hexSticker",
      "role": "Suggests"
    },
    {
      "package": "htmlwidgets",
      "role": "Suggests"
    },
    {
      "package": "mapSpain",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    },
    {
      "package": "remotes",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "ropenspain",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-25",
      "n": 3
    },
    {
      "week": "2025-26",
      "n": 2
    },
    {
      "week": "2025-31",
      "n": 10
    },
    {
      "week": "2025-39",
      "n": 1
    },
    {
      "week": "2025-40",
      "n": 1
    },
    {
      "week": "2025-41",
      "n": 1
    },
    {
      "week": "2025-42",
      "n": 1
    },
    {
      "week": "2025-43",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-09",
      "n": 7
    },
    {
      "week": "2026-12",
      "n": 1
    },
    {
      "week": "2026-13",
      "n": 7
    },
    {
      "week": "2026-15",
      "n": 7
    },
    {
      "week": "2026-21",
      "n": 1
    },
    {
      "week": "2026-22",
      "n": 9
    },
    {
      "week": "2026-23",
      "n": 3
    },
    {
      "week": "2026-25",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.2.1",
      "date": "2025-07-29"
    },
    {
      "name": "v0.2.2",
      "date": "2026-02-24"
    },
    {
      "name": "v0.2.3",
      "date": "2026-03-23"
    },
    {
      "name": "v0.2.4",
      "date": "2026-04-09"
    },
    {
      "name": "v0.2.5",
      "date": "2026-05-26"
    },
    {
      "name": "v0.2.6",
      "date": "2026-06-06"
    }
  ],
  "_topics": [
    "cdr",
    "data",
    "data-package",
    "mobile-telephone-data",
    "mobility",
    "origin-destination",
    "quarto"
  ],
  "_stars": 48,
  "_contributors": [
    {
      "user": "e-kotov",
      "count": 577,
      "uuid": 8681379
    },
    {
      "user": "robinlovelace",
      "count": 88,
      "uuid": 1825120
    },
    {
      "user": "eugenividal",
      "count": 10,
      "uuid": 32644567
    },
    {
      "user": "darakhshannehal",
      "count": 2,
      "uuid": 198928375
    },
    {
      "user": "rnanclares",
      "count": 2,
      "uuid": 11431207
    },
    {
      "user": "copilot",
      "count": 1,
      "uuid": 198982749
    },
    {
      "user": "vaughnbbcn",
      "count": 1,
      "uuid": 114619322
    }
  ],
  "_userbio": {
    "uuid": 34716267,
    "type": "organization",
    "name": "rOpenSpain",
    "followers": 79,
    "description": "rOpenSci is our form, Spanish public data our matter"
  },
  "_downloads": {
    "count": 672,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/spanishoddata"
  },
  "_devurl": "https://github.com/ropenspain/spanishoddata",
  "_pkgdown": "https://rOpenSpain.github.io/spanishoddata/",
  "_searchresults": 42,
  "_quarto": true,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/spanishoddata.html",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ropenspain/spanishoddata",
  "_realowner": "ropenspain",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2024-12-18"
    },
    {
      "version": "0.1.1",
      "date": "2025-04-09"
    },
    {
      "version": "0.2.0",
      "date": "2025-06-15"
    },
    {
      "version": "0.2.1",
      "date": "2025-08-01"
    },
    {
      "version": "0.2.2",
      "date": "2026-02-24"
    },
    {
      "version": "0.2.3",
      "date": "2026-03-23"
    },
    {
      "version": "0.2.4",
      "date": "2026-04-09"
    },
    {
      "version": "0.2.5",
      "date": "2026-05-26"
    },
    {
      "version": "0.2.6",
      "date": "2026-06-07"
    }
  ],
  "_exports": [
    "spod_available_data",
    "spod_check_files",
    "spod_cite",
    "spod_codebook",
    "spod_connect",
    "spod_convert",
    "spod_disconnect",
    "spod_download",
    "spod_get",
    "spod_get_data_dir",
    "spod_get_valid_dates",
    "spod_get_zones",
    "spod_quick_get_od",
    "spod_quick_get_zones",
    "spod_set_data_dir"
  ],
  "_help": [
    {
      "page": "spod_available_data",
      "title": "Get available data list",
      "topics": [
        "spod_available_data"
      ]
    },
    {
      "page": "spod_check_files",
      "title": "Check cached files consistency against checksums from S3",
      "topics": [
        "spod_check_files"
      ]
    },
    {
      "page": "spod_cite",
      "title": "Cite the package and the data",
      "topics": [
        "spod_cite"
      ]
    },
    {
      "page": "spod_codebook",
      "title": "View codebooks for v1 and v2 open mobility data",
      "topics": [
        "spod_codebook"
      ]
    },
    {
      "page": "spod_connect",
      "title": "Connect to data converted to 'DuckDB' or hive-style 'parquet' files",
      "topics": [
        "spod_connect"
      ]
    },
    {
      "page": "spod_convert",
      "title": "Convert data from plain text to duckdb or parquet format",
      "topics": [
        "spod_convert"
      ]
    },
    {
      "page": "spod_disconnect",
      "title": "Safely disconnect from data and free memory",
      "topics": [
        "spod_disconnect"
      ]
    },
    {
      "page": "spod_download",
      "title": "Download the data files of specified type, zones, and dates",
      "topics": [
        "spod_download"
      ]
    },
    {
      "page": "spod_get",
      "title": "Get tabular mobility data",
      "topics": [
        "spod_get"
      ]
    },
    {
      "page": "spod_get_data_dir",
      "title": "Get the data directory",
      "topics": [
        "spod_get_data_dir"
      ]
    },
    {
      "page": "spod_get_valid_dates",
      "title": "Get valid dates for the specified data version",
      "topics": [
        "spod_get_valid_dates"
      ]
    },
    {
      "page": "spod_get_zones",
      "title": "Get zones",
      "topics": [
        "spod_get_zones"
      ]
    },
    {
      "page": "spod_quick_get_od",
      "title": "Get daily trip counts per origin-destionation municipality from 2022 onward",
      "topics": [
        "spod_quick_get_od"
      ]
    },
    {
      "page": "spod_quick_get_zones",
      "title": "Get the municipalities geometries",
      "topics": [
        "spod_quick_get_zones"
      ]
    },
    {
      "page": "spod_set_data_dir",
      "title": "Set the data directory",
      "topics": [
        "spod_set_data_dir"
      ]
    }
  ],
  "_pkglogo": "https://github.com/rOpenSpain/spanishoddata/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/rOpenSpain/spanishoddata/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "backports",
    "base64enc",
    "bit",
    "bit64",
    "cachem",
    "checkmate",
    "class",
    "classInt",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "curl",
    "DBI",
    "digest",
    "dplyr",
    "duckdb",
    "e1071",
    "fastmap",
    "fs",
    "generics",
    "glue",
    "hms",
    "httr2",
    "jsonlite",
    "KernSmooth",
    "lifecycle",
    "lubridate",
    "magrittr",
    "MASS",
    "memoise",
    "openssl",
    "parallelly",
    "paws.common",
    "paws.storage",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "proxy",
    "purrr",
    "R6",
    "rappdirs",
    "rbibutils",
    "Rcpp",
    "Rdpack",
    "readr",
    "rlang",
    "s2",
    "sf",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyselect",
    "timechange",
    "tzdb",
    "units",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "wk",
    "xml2"
  ],
  "_vignettes": [
    {
      "source": "v1-2020-2021-mitma-data-codebook.qmd",
      "filename": "v1-2020-2021-mitma-data-codebook.html",
      "title": "Codebook and cookbook for v1 (2020-2021) Spanish mobility data",
      "engine": "quarto::html",
      "headings": [
        "1. Spatial data with zoning boundaries",
        "1.1 Districts",
        "1.2 Municipalities",
        "2. Mobility data",
        "2.1. Origin-Destination data",
        "2.2. Population by trip count data",
        "Advanced use"
      ],
      "created": "2024-08-27 11:13:27",
      "modified": "2026-02-24 17:28:19",
      "commits": 19
    },
    {
      "source": "v2-2022-onwards-mitma-data-codebook.qmd",
      "filename": "v2-2022-onwards-mitma-data-codebook.html",
      "title": "Codebook and cookbook for v2 (2022 onwards) Spanish mobility data",
      "engine": "quarto::html",
      "headings": [
        "1. Spatial data with zoning boundaries",
        "1.1 Districts",
        "1.2 Municipalities",
        "1.3 LUAs (Large Urban Areas)",
        "2. Mobility data",
        "2.1. Origin-destination data",
        "2.2. Population by trip count data",
        "2.3. Population by overnight stay data",
        "Advanced use"
      ],
      "created": "2024-08-27 11:13:27",
      "modified": "2026-03-23 13:27:09",
      "commits": 14
    },
    {
      "source": "convert.qmd",
      "filename": "convert.html",
      "title": "Download and convert mobility datasets",
      "engine": "quarto::html",
      "headings": [
        "Introduction",
        "Two ways to get the data",
        "Analysing large datasets",
        "How to choose between DuckDB, Parquet, and CSV",
        "Analysis Speed",
        "Convenience of data analysis",
        "Scenarios of getting the data",
        "Setup",
        "Getting a single day with spod_get()",
        "Analysing the data using DuckDB database",
        "Convert to DuckDB",
        "Load the converted DuckDB",
        "Analysing the data using Parquet",
        "Convert to Parquet",
        "Load the converted Parquet",
        "Download all available data",
        "Download all data",
        "Convert all data into analysis ready format",
        "Conversion speed",
        "Connecting to and analysing the converted datasets"
      ],
      "created": "2024-08-27 11:13:27",
      "modified": "2026-02-24 12:30:14",
      "commits": 14
    },
    {
      "source": "quick-get.qmd",
      "filename": "quick-get.html",
      "title": "Quicky get daily data",
      "engine": "quarto::html",
      "headings": [
        "Introduction",
        "Setup",
        "Get the data",
        "Get all flows with at least 1000 trips",
        "Get only trips of certain length",
        "Get only trips between certain municipalities",
        "All trips from Madrid",
        "All trips from Madrid to Barcelona"
      ],
      "created": "2024-12-02 12:15:22",
      "modified": "2026-02-24 12:30:14",
      "commits": 7
    }
  ],
  "_score": 8.614120695199388,
  "_indexed": true,
  "_nocasepkg": "spanishoddata",
  "_universes": [
    "ropenspain",
    "e-kotov"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.6",
      "date": "2026-06-16T18:16:04.000Z",
      "distro": "noble",
      "commit": "a69048affb8b15c3679b4f96156f8f07d104b81a",
      "fileid": "8855d046733f8a4d5cafb2808778b6e1c54cb135cab097e35ed100e3569c4785",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropenspain/actions/runs/27638070540"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.6",
      "date": "2026-06-16T18:16:04.000Z",
      "distro": "noble",
      "commit": "a69048affb8b15c3679b4f96156f8f07d104b81a",
      "fileid": "a8a753940f24d2cb364f9d43272241cdd25c6d393a5d720123d5a0631b48f599",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropenspain/actions/runs/27638070540"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.6",
      "date": "2026-06-16T18:21:18.000Z",
      "commit": "a69048affb8b15c3679b4f96156f8f07d104b81a",
      "fileid": "efff4a46d475dfb2573d3e30983d4397125c32abca886e56fccb60d2525d66d4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropenspain/actions/runs/27638070540"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.6",
      "date": "2026-06-16T18:24:20.000Z",
      "commit": "a69048affb8b15c3679b4f96156f8f07d104b81a",
      "fileid": "8539686d6f7b64dfe20cf33380013a962dd1a2e4d1138b3c86c11c99c1051ab1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropenspain/actions/runs/27638070540"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.6",
      "date": "2026-06-16T18:16:09.000Z",
      "commit": "a69048affb8b15c3679b4f96156f8f07d104b81a",
      "fileid": "dab031ff25b7871969505b397bea10505b7d87743a6d923220e8ff1b5ba7e9ee",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropenspain/actions/runs/27638070540"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.6",
      "date": "2026-06-16T18:14:56.000Z",
      "commit": "a69048affb8b15c3679b4f96156f8f07d104b81a",
      "fileid": "6d827fa41a680a34588471ced8509820661cd640e29cbb8be53b6fc73353fcac",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropenspain/actions/runs/27638070540"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.6",
      "date": "2026-06-16T18:15:33.000Z",
      "commit": "a69048affb8b15c3679b4f96156f8f07d104b81a",
      "fileid": "aae4b11d6c25dba5d9bdd8847179574581f27c19e65cece557e4aafbdc0f73df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropenspain/actions/runs/27638070540"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.6",
      "date": "2026-06-16T18:15:14.000Z",
      "commit": "a69048affb8b15c3679b4f96156f8f07d104b81a",
      "fileid": "362f2bb773188f09558d7c16ae6e635acf8423463ef0c6c6ac1ebd0f9719b17b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropenspain/actions/runs/27638070540"
    }
  ]
}