new StopTime( stop, arrivalTime, departureTime, stopSequence [, optional ] )

Description

GTFS StopTime

Representation of the GTFS StopTime definition.

GTFS Required Fields:

  • Stop (associated with stop_id)
  • Arrival Time (String HH:mm:ss)
  • Departure Time (String HH:mm:ss)
  • Stop Sequence (integer, 1-->...)

GTFS Optional Fields:

  • Stop Headsign
  • Pickup Type
  • Drop Off Type
  • Shape Distance Traveled
  • Timepoint

Right Track Fields:

  • Date (yyyymmdd)

Module: gtfs/StopTime

Parameters
Name Type Attributes Description
stop Stop

StopTime Stop

arrivalTime string

StopTime Arrival Time (GTFS Time String)

departureTime string

StopTime Departure Time (GTFS Time String)

stopSequence int

StopTime Stop Sequence

optional Object <optional>

Optional Arguments

Name Type Attributes Default Description
headsign string <optional>

The Trip headsign at this Stop

pickupType int <optional>
0

Stop Pickup Type

dropOffType int <optional>
0

Stop Drop Off Type

shapeDistanceTraveled number <optional>

The distance traveled from the first shape point

timepoint int <optional>
1

Indicate if the arrival and departure times are exact or approximate

date int <optional>
19700101

StopTime date (yyyymmdd)

Details

Members


stop :Stop

Description

The Stop for this scheduled StopTime

Details

date :Number

Description

The date of the Trip in YYYYMMDD format

Details
Number

1970101


arrivalTime :string

Description

The trip's arrival time for this scheduled StopTime in HH:MM:SS format

Details
string

arrival :DateTime

Description

The trip's arrival Date/Time

Details

departureTime :string

Description

The trip's departure time for this scheduled StopTime in HH:MM:SS format

Details
string

departure :DateTime

Description

The trip's departure Date/Time

Details

stopSequence :int

Description

The StopTime's sequence in the scheduled Trip

Details
int

pickupType :int

Description

Value indicating whether passengers are picked up at the Stop

Details
int

0


dropOffType :int

Description

Value indicating whether passengers are dropped off at the Stop

Details
int

0


headsign :string

Description

If the Trip Headsign changes along the Trip, this is the Trip Headsign displayed at this Stop

Details
string

shapeDistanceTraveled :number

Description

The actual distance traveled from the first shape point

Details
number

timepoint :int

Description

Indicates whether the arrival and departure times should be considered approximate or exact

Details
int

1

Methods


<static> sortByStopTransferWeight( a, b ) → {number}

Description

Sort StopTimes by the Stop's Transfer Weight (descending)

Parameters
Name Type Description
a StopTime

first StopTime

b StopTime

second StopTime

Returns

compare integer

Details

<static> sortByStopSequence( a, b ) → {number}

Description

Sort StopTimes by their stop sequence

Parameters
Name Type Description
a StopTime

first StopTime

b StopTime

second StopTime

Returns

compare integer

Details