Add license information in the GTFS schedule feed #607
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This proposal allows for describing license information in GTFS feeds.
licenses.txtthat describes the SPDX license or provides a custom license URL for the whole feed, with the possibility of specifying the license information for specific files in other rows.Describe the Problem
There has been a lot of conversation in the community regarding license information. It seems like most people agree on adding license information, and the main discussion was around the scope, i.e. can some files have different terms?
Previous conversations about license information, and there were some previously suggested options, mainly:
feed_info.txtthat can be SPDX or URL if the license is custom.agency_id) and even entity (filename).feed_info.txt+ a traditionalLICENSE.txtfile.The full conversations can be found in the license proposal issue and a Google Groups thread.
Proposed Solution
The solution entails the addition of a file called
licenses.txt, which lists the licenses for the whole feed as well as any specific files that might have a different license (e.g. shapes.txt). The license is specified either as an SPDX ID or as a custom URL.The producer can choose to either:
Type of change
GTFS Schedule
GTFS Realtime
Proposed Discussion Period
To put more eyes on this proposal, we propose a discussion period of at least two weeks.
Testing Details
Proposal Update Tracker
Checklist
Examples
Simple feed with one standard license:
Simple feed with custom license:
Feed with a standard license, shapes.txt has a custom license:
In this case,
shapes.txtiscustom_license_for_shapesspdx_value