-
Notifications
You must be signed in to change notification settings - Fork 0
TravelSafe
José Ignacio Amelivia Santiago edited this page Aug 29, 2021
·
3 revisions
Get travel restrictions endpoint reference on the official TravelPerk documentation.
Given the origin, destination, and a Carbon
date, this function will fetch the travel restrictions between the two locations at the specific date.
travelperk.travelsafe().travelsafe().travel_restrictions(
'ES',
'FR',
'country_code',
'country_code',
datetime.date.today()
)
Get local summary endpoint reference on the official TravelPerk documentation.
Given the location this function will fetch the local guidelines summary for that location.
travelperk.travelsafe().travelsafe().local_summary('ES', 'country_code')
Get airline safety measures endpoint reference on the official TravelPerk documentation.
Given the iata code for the airline this function will fetch the safety measures for that airline.
travelperk.travelsafe().travelsafe().airline_safety_measures('LH')
Will return all possible location types.
travelperk.travelsafe().travelsafe().location_types()