Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.3 KB

File metadata and controls

33 lines (24 loc) · 1.3 KB

ResourceTrip

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.

Properties

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]

Example

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)

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