new Service( serviceId, mon, tue, wed, thu, fri, sat, sun, startDate, endDate [, exceptions ] )

Description

GTFS Service

Representation of a row in the GTFS Calendar table.

GTFS Required Fields:

  • Service ID
  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday
  • Start Date
  • End Date

GTFS Optional Fields:

  • Service Exceptions

Module: gtfs/Service

Parameters
Name Type Attributes Default Description
serviceId string

Service ID

mon int

Service availability for Monday

tue int

Service availability for Tuesday

wed int

Service availability for Wednesday

thu int

Service availability for Thursday

fri int

Service availability for Friday

sat int

Service availability for Saturday

sun int

Service availability for Sunday

startDate int

Service Start Date (yyyymmdd)

endDate int

Service End Date (yyyymmdd)

exceptions Array.<ServiceException> <optional>
[]

List of Service Exceptions

Details

Members


id :string

Description

A unique ID that identifies the service

Details
string

monday :int

Description

A binary value indicating whether the service is valid for all Mondays

Details
int

tuesday :int

Description

A binary value indicating whether the service is valid for all Tuesdays

Details
int

wednesday :int

Description

A binary value indicating whether the service is valid for all Wednesdays

Details
int

thursday :int

Description

A binary value indicating whether the service is valid for all Thursdays

Details
int

friday :int

Description

A binary value indicating whether the service is valid for all Fridays

Details
int

saturday :int

Description

A binary value indicating whether the service is valid for all Saturdays

Details
int

sunday :int

Description

A binary value indicating whether the service is valid for all Sundays

Details
int

startDate :Number

Description

The start date for the service in YYYYMMDD format

Details
Number

endDate :Number

Description

The end date for the service in YYYYMMDD format

Details
Number

serviceExceptions :Array.<ServiceException>

Description

A list of Service Exceptions (additions and/or removals of regular service on specific dates) for the Service

Details