Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.95 KB

File metadata and controls

36 lines (27 loc) · 1.95 KB

FreightingGoodsRailDepartureAndDestination

Properties

Name Type Description Notes
type str
activity str [optional] [default to 'rail']
specification str [optional] [default to 'freight_train']
departure str City, Postal Address, Train Station or IATA Code of the departure address
destination str City, Postal Address, Train Station or IATA Code of the destination address
return_trip bool Decide if the trip is one way or return [optional] [default to True]
weight float The total weight travelling this route [optional] [default to 1]
weight_unit str Need a more specific unit? See the full list of supported units (Section 5). [optional] [default to 'metric tons']

Example

from klimapi_python.models.freighting_goods_rail_departure_and_destination import FreightingGoodsRailDepartureAndDestination

# TODO update the JSON string below
json = "{}"
# create an instance of FreightingGoodsRailDepartureAndDestination from a JSON string
freighting_goods_rail_departure_and_destination_instance = FreightingGoodsRailDepartureAndDestination.from_json(json)
# print the JSON string representation of the object
print(FreightingGoodsRailDepartureAndDestination.to_json())

# convert the object into a dict
freighting_goods_rail_departure_and_destination_dict = freighting_goods_rail_departure_and_destination_instance.to_dict()
# create an instance of FreightingGoodsRailDepartureAndDestination from a dict
freighting_goods_rail_departure_and_destination_from_dict = FreightingGoodsRailDepartureAndDestination.from_dict(freighting_goods_rail_departure_and_destination_dict)

[Back to Model list] [Back to API list] [Back to README]