Extract information from request response of live flight search endpoint.
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.
# 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) # }