Skip to content

RouteMatrixEntry

Source code in docs_src/capo_location/types/route_matrix_entry.py
class RouteMatrixEntry(TypedDict, closed=True):
    distance: NotRequired["capo_location.types.sensitive_double.SensitiveDouble"]
    """<p>The total distance of travel for the route.</p>"""
    duration_seconds: NotRequired[
        "capo_location.types.sensitive_double.SensitiveDouble"
    ]
    """<p>The expected duration of travel for the route.</p>"""
    error: NotRequired[
        "capo_location.types.route_matrix_entry_error.RouteMatrixEntryError"
    ]
    """<p>An error corresponding to the calculation of a route between the <code>DeparturePosition</code> and <code>DestinationPosition</code>.</p>"""

distance instance-attribute

distance: NotRequired[SensitiveDouble]

The total distance of travel for the route.

duration_seconds instance-attribute

duration_seconds: NotRequired[SensitiveDouble]

The expected duration of travel for the route.

error instance-attribute

error: NotRequired[RouteMatrixEntryError]

An error corresponding to the calculation of a route between the DeparturePosition and DestinationPosition.