Attribution

data class Attribution(val attributionId: String? = null, val agencyId: String? = null, val routeId: String? = null, val tripId: String? = null, val organizationName: String, val isProducer: IntBoolean? = null, val isOperator: IntBoolean? = null, val isAuthority: IntBoolean? = null, val attributionUrl: Url? = null, val attributionEmail: String? = null, val attributionPhone: String? = null)(source)

Dataset attributions.

This class represents a record in the attributions.txt file.

Constructors

Link copied to clipboard
constructor(attributionId: String? = null, agencyId: String? = null, routeId: String? = null, tripId: String? = null, organizationName: String, isProducer: IntBoolean? = null, isOperator: IntBoolean? = null, isAuthority: IntBoolean? = null, attributionUrl: Url? = null, attributionEmail: String? = null, attributionPhone: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "agency_id")
val agencyId: String?

Agency to which the attribution applies.

Link copied to clipboard
@SerialName(value = "attribution_email")
val attributionEmail: String?

Email of the organization.

Link copied to clipboard
@SerialName(value = "attribution_id")
val attributionId: String?

Identifies an attribution for the dataset or a subset of it. This is mostly useful for translations.

Link copied to clipboard
@SerialName(value = "attribution_phone")
val attributionPhone: String?

Phone number of the organization.

Link copied to clipboard
@SerialName(value = "attribution_url")
val attributionUrl: Url?

URL of the organization.

Link copied to clipboard
@SerialName(value = "is_authority")
val isAuthority: IntBoolean?

Functions in the same way as is_producer except the role of the organization is authority.

Link copied to clipboard
@SerialName(value = "is_operator")
val isOperator: IntBoolean?

Functions in the same way as is_producer except the role of the organization is operator.

Link copied to clipboard
@SerialName(value = "is_producer")
val isProducer: IntBoolean?

The role of the organization is producer.

Link copied to clipboard
@SerialName(value = "organization_name")
val organizationName: String

Name of the organization that the dataset is attributed to.

Link copied to clipboard
@SerialName(value = "route_id")
val routeId: String?

Functions in the same way as agency_id except the attribution applies to a route. Multiple attributions may apply to the same route.

Link copied to clipboard
@SerialName(value = "trip_id")
val tripId: String?

Functions in the same way as agency_id except the attribution applies to a trip. Multiple attributions may apply to the same trip.