Skip to content

RouteMatrixEntry

Source code in docs_src/capo_geo_routes/types/route_matrix_entry.py
class RouteMatrixEntry(TypedDict, closed=True):
    distance: "capo_geo_routes.types.distance_meters.DistanceMeters"
    """<p>The total distance of travel for the route.</p>"""
    duration: "capo_geo_routes.types.duration_seconds.DurationSeconds"
    """<p>The expected duration of travel for the route.</p> <p> <b>Unit</b>: <code>seconds</code> </p>"""
    error: NotRequired[
        "capo_geo_routes.types.route_matrix_error_code.RouteMatrixErrorCode"
    ]
    """<p>Error code that occurred during calculation of the route.</p>"""

distance instance-attribute

distance: DistanceMeters

The total distance of travel for the route.

duration instance-attribute

duration: DurationSeconds

The expected duration of travel for the route.

Unit: seconds

error instance-attribute

error: NotRequired[RouteMatrixErrorCode]

Error code that occurred during calculation of the route.