Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add license information in the GTFS feed #519

Open
skalexch opened this issue Nov 19, 2024 · 5 comments
Open

Add license information in the GTFS feed #519

skalexch opened this issue Nov 19, 2024 · 5 comments
Labels
Change: Addition New function proposed to the specification. GTFS Schedule Issues and Pull Requests that focus on GTFS Schedule Status: Discussion Issues and Pull Requests that are currently being discussed and reviewed by the community. Support: Needs Feedback

Comments

@skalexch
Copy link
Collaborator

skalexch commented Nov 19, 2024

Describe the problem

Many GTFS feeds are published under licenses that might restrict certain aspects of re-use. The information for these license are often found on the agency websites and can be hard to find. This creates ambiguity for use cases of the GTFS, and might delay their ingestion in trip planners.

Use cases

Adding license information to the GTFS spec allows consumers to easily figure out what they can use the GTFS for, whether they can modify it, re-share it, etc.
For consumers who work with hundreds of GTFS, the operation can even be automatized using the license information in the GTFS.

Proposed solution

Solution 1) Adding fields to feed_info.txt since it can contain non-rider-facing information.

license_spdx_id: The SPDX ID of the GTFS feed license
license_name: The name of the license
license_url: linking to either the website of the license, to SPDX or to a page in the agency website that details the conditions of use of the GTFS.

Solution 2) Adding a file called license_info.txt containing license_spdx_id, license_name and license_url.

A drawback of this 2nd solution is be that license.txt is a popular non-CSV file for software in general.

Additional information

GBFS has license information. In v3, license_url and license_id (SPDX ID) are conditionally forbidden. That can be the case with GTFS by providing a license_id if it exists in the SPDX license list, otherwise prividing a license_url.

@skalexch skalexch added GTFS Schedule Issues and Pull Requests that focus on GTFS Schedule Status: Discussion Issues and Pull Requests that are currently being discussed and reviewed by the community. Change: Addition New function proposed to the specification. Support: Needs Feedback labels Nov 19, 2024
@skinkie
Copy link
Contributor

skinkie commented Nov 19, 2024

From technical perspective: I would support feed_info.txt
From a legal perspective: Is this information even copyrightable?

@skalexch
Copy link
Collaborator Author

skalexch commented Nov 25, 2024

@skinkie in theory, it should be open and public. However, some producers/agencies have limits on what can be done to the data (also to limit their liability as well). Eg: London Transit Commission.

@antrim
Copy link
Contributor

antrim commented Nov 25, 2024

This thread from GTFS-changes may also be useful: https://groups.google.com/g/gtfs-changes/c/iDmt-vjs180/m/wMJI7LHGAQAJ

Complication: I believe some feeds may have different licenses for different data (e.g. alignments/shapes.txt).

@skinkie
Copy link
Contributor

skinkie commented Nov 25, 2024

@antrim especially if the shapes.txt is derived from OpenStreetMap...

@skalexch
Copy link
Collaborator Author

@antrim @skinkie could there be a solution where the license_id would only be possible when the whole GTFS feed is under one license?
Otherwise, since we intend to make license_id and license_url mutually forbidden, we can link a detailed license_url that specifies special rules for files like shapes.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Change: Addition New function proposed to the specification. GTFS Schedule Issues and Pull Requests that focus on GTFS Schedule Status: Discussion Issues and Pull Requests that are currently being discussed and reviewed by the community. Support: Needs Feedback
Projects
None yet
Development

No branches or pull requests

3 participants