Description Usage Arguments Value Functions Examples
Extract information from request response of live flight search endpoint.
1 2 3 4 5 6 7 8 9 10 11 12 13 | GetPrice(x)
GetItineraries(x, price = FALSE)
GetLegs(x)
GetSegments(x)
GetCarriers(x)
GetAgents(x)
GetPlaces(x)
|
x |
A request object. |
price |
If |
A tibble.
GetPrice
: Includes the SearchTime, ItineraryId (OutboundLegId, InboundLegId), and
PricingOptions. PricingOptions includes the AgentId, Price, and LinkURL.
GetItineraries
: Includes the ItineraryId (OutboundLegId, InboundLegId).
GetLegs
: Includes the LegId, SegmentIds, OriginId, DestinationId, DepartureTime,
ArrivalTime, Duration, No.Stops, and Stops. Stops includes the StopId, and Layover.
GetSegments
: Includes the SegmentId, OriginId, DestinationId, DepartureTime, ArrivalTime,
Duration, CarrierId, OperatingCarrierId, and FlightNumber.
GetCarriers
: Includes the CarrierId, Code, Name, and ImageURL.
GetAgents
: Includes the AgentId, Name, ImageURL, and Type.
GetPlaces
: Includes the PlaceId, ParentId, Code, Type and Name.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
apiSetKey("YOUR_API_KEY")
resp <- apiCreateSession(origin = "SFO", destination = "LHR", startDate = "2019-07-01")
resp <- apiPollSession(resp)
flightscanner:::GetPrice(resp)
flightscanner:::GetItineraries(resp)
flightscanner:::GetLegs(resp)
flightscanner:::GetSegments(resp)
flightscanner:::GetCarriers(resp)
flightscanner:::GetAgents(resp)
flightscanner:::GetPlaces(resp)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.