All OTP Transit entities should extend this class. The purpose of the class is to enforce a common implementation of the identity:
name | data type | constraints | description |
---|---|---|---|
branding | Branding | ||
agency | Agency | The 'agency' property represent a GTFS Agency and NeTEx the Authority. Note that Agency does NOT map 1-1 to Authority, it is rather a mix between Authority and Operator. | |
operator | Operator | NeTEx Operator, not in use when importing GTFS files. | |
shortName | string | ||
longName | string | ||
desc | string | ||
gtfsType | number | ||
mode | TransitMode | ||
url | string | ||
color | string | ||
textColor | string | ||
bikesAllowed | BikeAccess | ||
sortOrderSet | boolean | required | |
sortOrder | number | required | |
flexibleLineType | string | Pass-through information from NeTEx FlexibleLineType. This information is not used by OTP. | |
name | string | the route's short name, or the long name if the short name is null. | |
netexSubmode | string | ||
Properties inherited from TransitEntity |
|||
id | FeedScopedId |
Example
{ "branding" : { "shortName" : "...", "name" : "...", "url" : "...", "image" : "...", "description" : "...", "id" : { "feedId" : "...", "id" : "..." } }, "agency" : { "name" : "...", "url" : "...", "timezone" : "...", "lang" : "...", "phone" : "...", "fareUrl" : "...", "brandingUrl" : "...", "id" : { "feedId" : "...", "id" : "..." } }, "operator" : { "name" : "...", "url" : "...", "phone" : "...", "id" : { "feedId" : "...", "id" : "..." } }, "shortName" : "...", "longName" : "...", "desc" : "...", "gtfsType" : 12345, "mode" : "GONDOLA", "url" : "...", "color" : "...", "textColor" : "...", "bikesAllowed" : "ALLOWED", "sortOrderSet" : true, "sortOrder" : 12345, "flexibleLineType" : "...", "name" : "...", "netexSubmode" : "...", "id" : { "feedId" : "...", "id" : "..." } }