StopTime

StopTime

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

Constructor

new StopTime(stop, arrivalTime, departureTime, stopSequence, optionalopt)

Source:
See:

StopTime Constructor

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

Properties
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)

Members

(static, constant) DROP_OFF_TYPE_DRIVER_COORDINATION :number

Source:
Default Value:
  • 3

Drop Off Type: Coordinate with driver

Type:
  • number

(static, constant) DROP_OFF_TYPE_NONE :number

Source:
Default Value:
  • 1

Drop Off Type: No drop off available

Type:
  • number

(static, constant) DROP_OFF_TYPE_PHONE_AGENCY :number

Source:
Default Value:
  • 2

Drop Off Type: Phone agency to arrange

Type:
  • number

(static, constant) DROP_OFF_TYPE_REGULAR :number

Source:
Default Value:
  • 0

Drop Off Type: Regularly scheduled drop off

Type:
  • number

(static, constant) PICKUP_TYPE_DRIVER_COORDINATION :number

Source:
Default Value:
  • 3

Pickup Type: Coordinate with driver

Type:
  • number

(static, constant) PICKUP_TYPE_NONE :number

Source:
Default Value:
  • 1

Pickup Type: No pickup available

Type:
  • number

(static, constant) PICKUP_TYPE_PHONE_AGENCY :number

Source:
Default Value:
  • 2

Pickup Type: Phone agency to arrange

Type:
  • number

(static, constant) PICKUP_TYPE_REGULAR :number

Source:
Default Value:
  • 0

Pickup Type: Regularly scheduled pickup

Type:
  • number

(static, constant) TIMEPOINT_APPROXIMATE :number

Source:
Default Value:
  • 0

Timepoint: Times are considered approximate

Type:
  • number

(static, constant) TIMEPOINT_EXACT :number

Source:
Default Value:
  • 1

Timepoint: Times are considered exact

Type:
  • number

arrival :DateTime

Source:

The trip's arrival Date/Time

Type:

arrivalTime :string

Source:

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

Type:
  • string

date :Number

Source:
Default Value:
  • 1970101

The date of the Trip in YYYYMMDD format

Type:
  • Number

departure :DateTime

Source:

The trip's departure Date/Time

Type:

departureTime :string

Source:

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

Type:
  • string

dropOffType :int

Source:
Default Value:
  • 0

Value indicating whether passengers are dropped off at the Stop

Type:
  • int

headsign :string

Source:

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

Type:
  • string

pickupType :int

Source:
Default Value:
  • 0

Value indicating whether passengers are picked up at the Stop

Type:
  • int

shapeDistanceTraveled :number

Source:

The actual distance traveled from the first shape point

Type:
  • number

stop :Stop

Source:

The Stop for this scheduled StopTime

Type:

stopSequence :int

Source:

The StopTime's sequence in the scheduled Trip

Type:
  • int

timepoint :int

Source:
Default Value:
  • 1

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

Type:
  • int

Methods

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

Source:

Sort StopTimes by their stop sequence

Parameters:
Name Type Description
a StopTime

first StopTime

b StopTime

second StopTime

Returns:

compare integer

Type
number

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

Source:

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

Parameters:
Name Type Description
a StopTime

first StopTime

b StopTime

second StopTime

Returns:

compare integer

Type
number