Description Usage Arguments Value Methods (by class) Examples
Get flight data from source. Includes: price, itineraries, legs, segments, carriers,
agents, and places. Data are in tibble()
form.
1 2 3 4 5 6 7 |
x |
An object to get data from. |
... |
Further arguments passed to methods. |
A list of tibbles.
response
: Get flight data from API response.
SQLiteConnection
: Get flight data from SQLite connection.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.