A single trip segment between two elements on a route. Contains an encoded polyline for map rendering, the source and destination element ids, and optional raw JSON with additional trip metadata from the routing provider.
| Name | Type | Description | Notes |
|---|---|---|---|
| line | EncodedPolyline | ||
| from_element_id | str | The position the polyline starts. | |
| to_element_id | str | The position the polyline ends. | |
| raw_json | object | The raw json descirbing the trip. | [optional] |
from touroptimizer_py_client.models.resource_trip import ResourceTrip
# TODO update the JSON string below
json = "{}"
# create an instance of ResourceTrip from a JSON string
resource_trip_instance = ResourceTrip.from_json(json)
# print the JSON string representation of the object
print(ResourceTrip.to_json())
# convert the object into a dict
resource_trip_dict = resource_trip_instance.to_dict()
# create an instance of ResourceTrip from a dict
resource_trip_from_dict = ResourceTrip.from_dict(resource_trip_dict)