{"id":13573167,"url":"https://github.com/ioTransit/simple-transit-api","last_synced_at":"2025-04-04T12:30:25.431Z","repository":{"id":238730231,"uuid":"797277641","full_name":"ioTransit/simple-transit-api","owner":"ioTransit","description":"A simple transit api written in Go","archived":false,"fork":false,"pushed_at":"2024-05-21T00:36:14.000Z","size":26623,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-11-05T07:35:51.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ioTransit.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":null}},"created_at":"2024-05-07T14:29:55.000Z","updated_at":"2024-08-20T18:42:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"70303d6e-6cfd-4d61-afd7-c4b5e742ac3b","html_url":"https://github.com/ioTransit/simple-transit-api","commit_stats":null,"previous_names":["iotransit/simple-transit-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioTransit%2Fsimple-transit-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioTransit%2Fsimple-transit-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioTransit%2Fsimple-transit-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioTransit%2Fsimple-transit-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ioTransit","download_url":"https://codeload.github.com/ioTransit/simple-transit-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247179288,"owners_count":20897010,"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":[],"created_at":"2024-08-01T15:00:31.172Z","updated_at":"2025-04-04T12:30:20.409Z","avatar_url":"https://github.com/ioTransit.png","language":"JavaScript","readme":"# Simple Transit API\nA simple transit api written in Go with [gtfsparser](https://www.github.com/geops) and [Echo](https://echo.labstack.com/)\n\n## Quickstart\nThere are 2 agencies already setup out of the box that you can take a look at in the providers folder. Each agency will need to be setup with the unique id, name and the gtfs url.\n\n```golang\npackage providers\n\nimport \"go-gtfs-server/app/model\"\n\nvar StLouisConfig = model.AgencyConfig{\n\tId:             \"stlouis\",\n\tName:           \"Saint Louis Metro\",\n\tUrl:            \"https://www.metrostlouis.org/Transit/google_transit.zip\",\n}\n```\n### On Start\nWhen the server is first started it will load all of the gtfs files that are in the listed in the `providers/all.go` file. Once those are loaded they are stored with their id's as unique identifiers in memory and accessible via the rest api.\n\n### On Update \nIn order to keep your data up to date you will need to set the `UPDATE_INTERVAL` with a [cron string](https://crontab.guru/). Once you have that setup this will allow for your gtfs to be updated on a regular interval.\n\n### Stops\n- `/stops/:agencyId/` - Returns all of the stops by agency id\n- `/stops/:agencyId/?stop_name=:\u003cquery\u003e`- Returns all of the stops by agency id that start with the query\n- `/stops/:agencyId/:stopId/` - The stop from the agency with that stop_id\n\n### Routes\n- `/routes/:agencyId/` - Returns all of the routes by agency id\n- `/routes/:agencyId/?route_long_name=:\u003cquery\u003e`- Returns all of the routes by agency id that start with the query\n- `/routes/:agencyId/:routeId/` - The route from the agency with that route_id\n\n### Trips\n- `/trips/:agencyId/:tripId/` - Returns all of the trips by agency id\n- `/trips/:agencyId/route/:routeId/`  - The trips from the agency with that trip_id \n\n","funding_links":[],"categories":["Uncategorized","Producing Data"],"sub_categories":["Uncategorized","Software for Creating APIs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FioTransit%2Fsimple-transit-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FioTransit%2Fsimple-transit-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FioTransit%2Fsimple-transit-api/lists"}