gis-tools-ts - v0.6.0
    Preparing search index...

    Class GTFSTimeframe

    Timeframes

    Optional Describes fare variations based on time of day, day of week, or specific dates. Timeframes can be associated with fare products in fare_leg_rules.txt. There must be no overlapping [start_time, end_time) intervals for the same timeframe_group_id and service_id.

    Index

    Constructors

    • Parameters

      • data: Record<string, string>

        the parsed GTFS CSV data

      Returns GTFSTimeframe

    Properties

    endTime?: string

    Conditionally Required End of a timeframe in HH:MM:SS format (<= 24:00:00). The interval excludes this time.

    • If start_time is defined, end_time is required.
    • If start_time is absent, end_time must be absent.
    • If end_time is empty in the CSV, it is considered 24:00:00.
    serviceId: string

    Required Identifies a set of dates (calendar.service_id or calendar_dates.service_id) when this timeframe is in effect.

    startTime?: string

    Conditionally Required Beginning of a timeframe in HH:MM:SS format (<= 24:00:00). The interval includes this time.

    • If end_time is defined, start_time is required.
    • If end_time is absent, start_time must be absent.
    • If start_time is empty in the CSV, it is considered 00:00:00.
    timeframeGroupId: string

    Required Identifies a timeframe (or set of timeframes).