Leg
Direct Subclass:
A leg is the smallest unit of travel, in the case of a flight a takeoff immediately followed by a landing at two set points on a particular carrier with a particular flight number.
Test:
Constructor Summary
Public Constructor | ||
public |
constructor(aircraft: string, arrival: string, departure: string, origin: string, destination: string, operatingDisclosure: string, changePlane: boolean, data: string) |
Public Constructors
public constructor(aircraft: string, arrival: string, departure: string, origin: string, destination: string, operatingDisclosure: string, changePlane: boolean, data: string) source
Params:
Name | Type | Attribute | Description |
aircraft | string | Aircraft is flying between an origin and destination. |
|
arrival | string | Flight arrival date in Jodatime format |
|
departure | string | Flight departure date in Jodatime format |
|
origin | string | Source origin of the flight |
|
destination | string | Flight Destination |
|
operatingDisclosure | string | Department of Transportation disclosure information on the actual operator of a flight in a code share. |
|
changePlane | boolean | Whether the passenger(s) have to change planes following this leg. Only applies to the next leg. |
|
data | string | [OPTIONAL] any client specific key-value pair specific to leg |