ServiceException

ServiceException

GTFS Service Exception

Representation of a row in the GTFS Calendar_Dates table.

GTFS Required Fields:

  • Service ID
  • Date
  • Exception Type

Module: gtfs/ServiceException

Constructor

new ServiceException(serviceId, date, exceptionType)

Source:
See:

Service Exception Constructor

Parameters:
Name Type Description
serviceId string

Service ID

date int

Service Date (yyyymmdd)

exceptionType int

Service Exception Type

Members

(static, constant) SERVICE_ADDED :number

Source:
Default Value:
  • 1

Service Exception Type: Service Added

Type:
  • number

(static, constant) SERVICE_REMOVED :number

Source:
Default Value:
  • 2

Service Exception Type: Service Removed

Type:
  • number

date :Number

Source:

The date of the service exception in YYYYMMDD format

Type:
  • Number

exceptionType :int

Source:

The Service exception type (added or removed)

Type:
  • int

serviceId :string

Source:

A unique ID representing the Service

NOTE: this ID should match the ID representing the regular service in the Service class

Type:
  • string