{"id":23569067,"url":"https://github.com/r-transit/gtfsio","last_synced_at":"2025-04-30T22:26:06.814Z","repository":{"id":44697037,"uuid":"341340944","full_name":"r-transit/gtfsio","owner":"r-transit","description":"Read and Write General Transit Feed Specification (GTFS)","archived":false,"fork":false,"pushed_at":"2025-03-10T13:13:39.000Z","size":876,"stargazers_count":14,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T16:18:31.039Z","etag":null,"topics":["gtfs","r"],"latest_commit_sha":null,"homepage":"https://r-transit.github.io/gtfsio/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-transit.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null}},"created_at":"2021-02-22T21:22:12.000Z","updated_at":"2025-03-10T12:57:44.000Z","dependencies_parsed_at":"2025-01-21T13:35:57.000Z","dependency_job_id":"44c91394-42f5-4789-94aa-b01eb0f52f28","html_url":"https://github.com/r-transit/gtfsio","commit_stats":{"total_commits":118,"total_committers":4,"mean_commits":29.5,"dds":"0.11016949152542377","last_synced_commit":"fab8899264c5408d82f981e4cccd4b6f4ff4802d"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-transit%2Fgtfsio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-transit%2Fgtfsio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-transit%2Fgtfsio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-transit%2Fgtfsio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-transit","download_url":"https://codeload.github.com/r-transit/gtfsio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251790768,"owners_count":21644285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gtfs","r"],"created_at":"2024-12-26T19:11:59.956Z","updated_at":"2025-04-30T22:26:06.793Z","avatar_url":"https://github.com/r-transit.png","language":"R","funding_links":[],"categories":["Producing Data"],"sub_categories":["GTFS"],"readme":"---\noutput: github_document\n---\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# gtfsio \u003cimg align=\"right\" src=\"man/figures/logo.png\" width=\"180\"\u003e \n\n[![CRAN status](https://www.r-pkg.org/badges/version/gtfsio)](https://CRAN.R-project.org/package=gtfsio)\n[![gtfsio status badge](https://dhersz.r-universe.dev/badges/gtfsio)](https://dhersz.r-universe.dev)\n[![B status](https://github.com/r-transit/gtfsio/workflows/R-CMD-check/badge.svg)](https://github.com/r-transit/gtfsio/actions?query=workflow%3AR-CMD-check)\n[![Codecov test coverage](https://codecov.io/gh/r-transit/gtfsio/branch/master/graph/badge.svg)](https://app.codecov.io/gh/r-transit/gtfsio?branch=master)\n[![Lifecycle: maturing](https://lifecycle.r-lib.org/articles/figures/lifecycle-maturing.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n[![CRAN/METACRAN Total downloads](http://cranlogs.r-pkg.org/badges/grand-total/gtfsio?color=yellow)](https://CRAN.R-project.org/package=gtfsio)\n\n**gtfsio** offers tools for the development of GTFS-related packages. It establishes a standard for representing GTFS feeds using R data types based on [Google's Static GTFS Reference](https://developers.google.com/transit/gtfs/reference). It provides fast and flexible functions to read and write GTFS feeds while sticking to this standard. It defines a basic `gtfs` class which is meant to be extended by packages that depend on it. And it also offers utility functions that support checking the structure of GTFS objects.\n\n## Installation\n\nStable version:\n\n```{r, eval = FALSE}\ninstall.packages(\"gtfsio\")\n```\n\nDevelopment version:\n\n```{r, eval = FALSE}\ninstall.packages(\"gtfsio\", repos = \"https://dhersz.r-universe.dev\")\n\n# or\n# install.packages(\"remotes\")\nremotes::install_github(\"r-transit/gtfsio\")\n```\n\n## Usage\n\nGTFS feeds are read using the `import_gtfs()` function:\n\n```{r}\nlibrary(gtfsio)\n\npath \u003c- system.file(\"extdata/ggl_gtfs.zip\", package = \"gtfsio\")\n\ngtfs \u003c- import_gtfs(path)\n\nnames(gtfs)\n```\n\n`import_gtfs()` returns a `gtfs` object. The `gtfs` class might be extended by other packages using the constructor, validator and methods provided by **gtfsio**:\n\n```{r}\nclass(gtfs)\n```\n\nUse the `export_gtfs()` function to write GTFS objects to disk:\n\n```{r}\ntmpf \u003c- tempfile(fileext = \".zip\")\n\nexport_gtfs(gtfs, tmpf)\n\nzip::zip_list(tmpf)$filename\n```\n\nFor a more complete demonstration please read the [introductory vignette](https://r-transit.github.io/gtfsio/articles/gtfsio.html).\n\n## GTFS-related packages\n\n- [`{tidytransit}`](https://github.com/r-transit/tidytransit)\n- [`{gtfs2gps}`](https://github.com/ipeaGIT/gtfs2gps)\n- [`{gtfsrouter}`](https://github.com/UrbanAnalyst/gtfsrouter)\n- [`{gtfstools}`](https://github.com/ipeaGIT/gtfstools)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-transit%2Fgtfsio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-transit%2Fgtfsio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-transit%2Fgtfsio/lists"}