In certain cases, data provided by transit agencies cannot be used without displaying copyright notices to the end user. If a routing response contains this type of data, the Public Transit API v3 adds operator attribution information to the route response. Operator attribution must be displayed together with a route. This requirement is part of the terms and conditions for the Public Transit API v3.
Operator Attribution in Route Response Example
If copyright information is available, the response contains an
Attributions element. This response element contains a ready-to-display string, which must be displayed in full to end users. The string is in the element Link identified with the attribute key/value pair
type="agency". In addition, possible tariff information is in the element Link identified with the attribute key/value pair
type="tariff". For more information, see the type
Attributions . The attributes
sec_ids represent the relevant segments of the trip where the copyright notices apply.
The example below shows an example response with copyright information.
<Attributions> <Link type="agency" href="http://example-company-a.com" sec_ids="R000010-C2-S3 R000010-C2-S1 R000010-C0-S1">Company A</Link> <Link type="tariff" href="http://example-company-a.com/tariff" sec_ids="R000010-C2-S3 R000010-C2-S1 R000010-C0-S1">Tariff</Link> </Attributions>