You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hint: Some specifications only support certain details.
[optional] [default to 'average']
value
float
The value in the given unit
unit
str
Distance a passenger traveled in the given unit. Example: 2 passengers travel 300 kilometers. So the right value would be 600 and the unit would be passenger.kilometers. Need a more specific unit? See the full list of supported units (Section 6).
[optional] [default to 'kilometers']
Example
fromklimapi_python.models.travel_air_flights_passenger_distanceimportTravelAirFlightsPassengerDistance# TODO update the JSON string belowjson="{}"# create an instance of TravelAirFlightsPassengerDistance from a JSON stringtravel_air_flights_passenger_distance_instance=TravelAirFlightsPassengerDistance.from_json(json)
# print the JSON string representation of the objectprint(TravelAirFlightsPassengerDistance.to_json())
# convert the object into a dicttravel_air_flights_passenger_distance_dict=travel_air_flights_passenger_distance_instance.to_dict()
# create an instance of TravelAirFlightsPassengerDistance from a dicttravel_air_flights_passenger_distance_from_dict=TravelAirFlightsPassengerDistance.from_dict(travel_air_flights_passenger_distance_dict)