Skip to content

RouteTransitSpan

Source code in docs_src/capo_geo_routes/types/route_transit_span.py
class RouteTransitSpan(TypedDict, closed=True):
    country: NotRequired["capo_geo_routes.types.country_code3.CountryCode3"]
    """<p>3 letter Country code corresponding to the Span.</p>"""
    distance: NotRequired["capo_geo_routes.types.distance_meters.DistanceMeters"]
    """<p>Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.</p> <p> <b>Unit</b>: <code>meters</code> </p>"""
    duration: NotRequired["capo_geo_routes.types.duration_seconds.DurationSeconds"]
    """<p>Duration of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.</p> <p> <b>Unit</b>: <code>seconds</code> </p>"""
    geometry_offset: NotRequired["int"]
    """<p>Offset in the leg geometry corresponding to the start of this span.</p>"""
    names: NotRequired[
        "capo_geo_routes.types.localized_string_list.LocalizedStringList"
    ]
    """<p>Names of the transit span in available languages.</p>"""
    region: NotRequired["capo_geo_routes.types.sensitive_string.SensitiveString"]
    """<p>2-3 letter Region code corresponding to the Span. This is either a province or a state.</p>"""

country instance-attribute

country: NotRequired[CountryCode3]

3 letter Country code corresponding to the Span.

distance instance-attribute

distance: NotRequired[DistanceMeters]

Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.

Unit: meters

duration instance-attribute

duration: NotRequired[DurationSeconds]

Duration of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.

Unit: seconds

geometry_offset instance-attribute

geometry_offset: NotRequired[int]

Offset in the leg geometry corresponding to the start of this span.

names instance-attribute

names: NotRequired[LocalizedStringList]

Names of the transit span in available languages.

region instance-attribute

region: NotRequired[SensitiveString]

2-3 letter Region code corresponding to the Span. This is either a province or a state.