TransitLineInfoResponse interface

This object is returned from a successful Transit Line Info call.

Properties

lineGroup

Groups together all lines that are logically part of the same group. Typically contains 2 lines having the same agency and line, one going from A to B, and the other from B to A.

lines

The line group’s basic info and list of the lines.

patterns

List of patterns this group is comprised of. A pattern consists of a stop sequence and shape per a line in GeoJSON format.

schedule

Line schedule for the current 24h. May be null in case no schedule exists for the current time.

stops

List of stops the line group goes through.

Property Details

lineGroup

Groups together all lines that are logically part of the same group. Typically contains 2 lines having the same agency and line, one going from A to B, and the other from B to A.

lineGroup?: LineGroup

Property Value

lines

The line group’s basic info and list of the lines.

lines?: Line[]

Property Value

Line[]

patterns

List of patterns this group is comprised of. A pattern consists of a stop sequence and shape per a line in GeoJSON format.

patterns?: Pattern[]

Property Value

schedule

Line schedule for the current 24h. May be null in case no schedule exists for the current time.

schedule?: LineArrival

Property Value

stops

List of stops the line group goes through.

stops?: Stop[]

Property Value

Stop[]