flightGet: Get flight data from source.

Description Usage Arguments Value Methods (by class) Examples

Description

Get flight data from source. Includes: price, itineraries, legs, segments, carriers, agents, and places. Data are in tibble() form.

Usage

1
2
3
4
5
6
7
flightGet(x, ...)

## S3 method for class 'response'
flightGet(x, ...)

## S3 method for class 'SQLiteConnection'
flightGet(x, ...)

Arguments

x

An object to get data from.

...

Further arguments passed to methods.

Value

A list of tibbles.

Methods (by class)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# Get data from API
apiSetKey("YOUR_API_KEY")
resp <- apiCreateSession(origin = "SFO", destination = "LHR", startDate = "2019-07-01")
resp <- apiPollSession(resp)
flightGet(resp)

# Get data from SQLite database
con <- dbCreateDB(dbname = "flight.db")
flightGet(con)
dbDisconnect(con)

## End(Not run)

MinZhang95/flightscanner documentation built on July 1, 2019, 9:36 p.m.