package
0.17.0-rc0
Repository: https://github.com/interline-io/transitland-lib.git
Documentation: pkg.go.dev

# Functions

NewInconsistentTimezoneError returns a new InconsistentTimezoneError.
NewInvalidFarezoneError returns a new InvalidFarezoneError.

# Structs

AgencyIDConditionallyRequiredCheck checks if agency_id is missing when more than one agency is present.
AgencyIDRecommendedCheck checks if agency_id is missing when more than one agency is present.
BlockOverlapCheck checks for BlockOverlapErrors.
BlockOverlapError reports when two block_id's with the same service_id overlap in time.
No description provided by the author
DescriptionEqualsName checks that route_desc does not duplicate route_short_name or route_long_name.
DuplicateFareRuleCheck checks for DuplicateFareLegRuleErrors.
DuplicateFareLegRule reports when multiple FareLegRules have the same unique values.
DuplicateFareRuleCheck checks for DuplicateFareProductErrors.
DuplicateFareProduct reports when multiple FareProducts have the same unique values.
DuplicateFareRuleCheck checks for DuplicateFareRuleErrors.
DuplicateFareRuleError reports when multiple FareRules have the same (route_id,origin_id,_destination_id,contains_id).
DuplicateFareRuleCheck checks for DuplicateFareTransferRuleErrors.
DuplicateFareTransferRule reports when multiple FareTransferRules have the same unique values.
DuplicateRouteNameCheck checks for routes of the same agency with identical route_long_names.
DuplicateRouteNameError reports when routes of the same agency have identical route_long_name values.
EntityDuplicateCheck determines if a unique entity ID is present more than once in the file.
FastTravelError reports when reasonable maximum speeds have been exceeded for at least 30 seconds.
FrequencyDurationCheck reports when a frequencies.txt entry has (start_time,end_time) less than a full headway.
FrequencyOverlapCheck checks for FrequencyOverlapErrors.
FrequencyOverlapError is reported when two frequencies.txt entries for the same trip overlap in time.
InconsistentTimezoneCheck checks for InconsistentTimezoneErrors.
InconsistentTimezoneError reports when agency.txt has more than 1 unique timezone present.
InsufficientColorContrastCheck checks that when route_color and route_text_color are specified, sufficient contrast exists to be legible.
InvalidFarezoneError reports when a farezone does not exist.
InvalidParentStationError reports when a parent_station has a location_type that is not allowed.
MinTransferTimeCheck reports when min_transfer_type is required to be set.
NoScheduledServiceCheck checks for NoScheduledServiceErrors.
NoScheduledServiceError reports when a service entry contains no active days.
NullIslandCheck checks for ZeroCoordinateError.
ParentStationLocationTypeCheck checks for InvalidParentStationErrors.
RouteExtendedTypesCheck reports a Best Practices warning when extended route_type values are used.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RouteShortNameTooLongCheck checks if route_short_name is, well, too long.
ServiceAllDaysEmptyCheck checks if a calendar.txt entry, non-generated, has at least one day of week marked as 1.
ShortServiceCheck checks that a calendar.txt entry has (start_date,end_date) of more than 1 day.
StopTimeFastTravelCheck checks for FastTravelErrors.
StopTimeSequenceCheck checks that all sequences stop_time sequences in a trip are valid.
StopTooCloseCheck checks for StopTooCloseErrors.
StopTooCloseError reports when two stops of location_type = 0 that have no parent are within 1m of each other.
StopTooFarCheck checks for StopTooFarErrors.
StopTooFarError reports when two related stops are >1km away.
StopTooFarFromShapeCheck checks for StopTooFarFromShapeErrors.
StopTooFarFromShapeError reports when a stop is too far from a shape.
UnusedEntityError reports when an entity is present but not referenced.
ValidFarezoneCheck checks for InvalidFarezoneErrors.
ZeroCoordinateError reports when a required geometry has a (0,0) coordinate.