new TripSearchResultSegment( trip, enter, exit )

Description

Trip Search Result Segment

This Class represents a single Trip Search Result Segment. One or more of these makes a Trip Search Result.

A Trip Search Result Segment is an individual Trip that a rider would take on their way from their original Origin and Destination Stops. A single Segment may not necessarily contain either the original Origin or final Destination Stops.

The 'Enter' and 'Exit' Stops are those where a rider will get on a Trip or leave a Trip, respectively, on their way from their original Origin Stop to their final Destination Stop.

Module: search/TripSearchResultSegment

Parameters
Name Type Description
trip Trip

The Trip that makes up this Segment

enter Stop | string

The Stop or Stop ID where the Segment starts

exit Stop | string

The Stop or Stop ID where the Segment ends

Members


trip :Trip

Description

The Trip that makes up this Segment


enter :StopTime

Description

The StopTime where the Segment starts


exit :StopTime

Description

The StopTime where the Segment ends


origin :StopTime

Description

The Trip Origin StopTime


destination :StopTime

Description

The Trip Destination StopTime


travelTime :number

Description

Travel Time (in minutes) on this Segment

Details
number