v3

latestSwagger 2.0raw.githubusercontent.com2023-01-20198.7 KB
trip-purpose-prediction

Returns the forecast purpose of a trip

get/travel/predictions/trip-purpose

Query parameters

originLocationCodestring required

city/airport IATA code from which the traveler will depart, e.g. BOS for Boston

destinationLocationCodestring required

city/airport IATA code to which the traveler is going, e.g. PAR for Paris

departureDatestring required

the date on which the traveler will depart from the origin to go to the destination. Dates are specified in the ISO 8601 YYYY-MM-DD format, e.g. 2017-12-25

returnDatestring required

the date on which the traveler will depart from the destination to return to the origin. Dates are specified in the ISO 8601 YYYY-MM-DD format, e.g. 2018-02-28

searchDatestring

the date on which the traveler is performing the search. If this parameter is not specified, current date will be used. Dates are specified in the ISO 8601 YYYY-MM-DD format, e.g. 2018-02-28

Response

Success

All 1 operations