{"id":13341277,"url":"https://github.com/richwolf/transit","last_synced_at":"2025-03-11T20:33:12.227Z","repository":{"id":45055634,"uuid":"357748830","full_name":"richwolf/transit","owner":"richwolf","description":"The Swiftiest way to work with GTFS data feeds.","archived":false,"fork":false,"pushed_at":"2022-08-22T06:21:26.000Z","size":183,"stargazers_count":35,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-24T08:29:46.703Z","etag":null,"topics":["gtfs-datasets","gtfs-feed","gtfs-field","gtfs-specification","ios","ipados","macos","swift","transit","transit-agency","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/richwolf.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}},"created_at":"2021-04-14T02:28:14.000Z","updated_at":"2024-09-21T13:48:54.000Z","dependencies_parsed_at":"2022-08-12T11:40:54.482Z","dependency_job_id":null,"html_url":"https://github.com/richwolf/transit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richwolf%2Ftransit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richwolf%2Ftransit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richwolf%2Ftransit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richwolf%2Ftransit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richwolf","download_url":"https://codeload.github.com/richwolf/transit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243109253,"owners_count":20237830,"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-datasets","gtfs-feed","gtfs-field","gtfs-specification","ios","ipados","macos","swift","transit","transit-agency","watchos"],"created_at":"2024-07-29T19:25:18.392Z","updated_at":"2025-03-11T20:33:11.940Z","avatar_url":"https://github.com/richwolf.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Transit\n\nTransit strives to be the Swiftiest way to interact with a GTFS static dataset feed.\n\n## Introduction\n\nThe [General Transit Feed Specification](https://developers.google.com/transit/gtfs), or GTFS, is a dataset specification that enables a transit agency to describe a transit system to developers. More formally, GTFS is actually comprised of two data specifications: the **GTFS Static Specification** and the **GTFS Real-Time Specification**. The GTFS Static Specification describes those features of a transit system that remain reasonably static (i.e., transit routes, stops, schedules, etc.). The GTFS Real-Time Specification, on the other hand, describes the moment-to-moment state of a transit system (i.e., where specific vehicles are located, estimated arrival times, etc.). The Transit package currently supports the GTFS Static Specification (the GTFS Real-Time specification may be supported in the future). Within this document, GTFS should always be interpreted as referring to the GTFS Static Specification.\n\n## Installing Transit\n\nTransit is distributed as a [Swift package](https://developer.apple.com/documentation/swift_packages). There are many online tutorials which describe how packages can be installed in an Xcode project.\n\n## Usage Example\n\nTo use Transit, simply instantiate a `Feed` with the contents of a folder containing GTFS datasets. You can then ask the feed for agency, route, and stop data.\n\n```swift\n// Create a feed\nlet feedURL = URL(fileURLWithPath: \"path-to-folder-containing-GTFS-datasets\"!)\nlet feed = Feed(contentsOfURL: feedURL)\n\n// Get the agency name from the feed\nif let agencyName = feed.agency?.name {\n\tprint(agencyName)\n}\n\n// Print info for every route in the feed\nif let routes = feed.routes {\n\tfor route in routes {\n\t\tprint(route)\n\t}\n}\n\n// Print info for every stop in the feed\nif let stops = feed.stops {\n\tfor stop in stops {\n\t\tprint(stop)\n\t}\n}\n```\n\n## Documentation\n\nTransit has embraced Apple’s [DocC](https://developer.apple.com/documentation/docc) documentation compiler. DocC makes it simple to add documentation for a project. Please refer to the documentation included within the Transit package for details on Transit’s use or for help.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichwolf%2Ftransit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichwolf%2Ftransit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichwolf%2Ftransit/lists"}