Skip to content

RouteLeg

Source code in docs_src/capo_geo_routes/types/route_leg.py
class RouteLeg(TypedDict, closed=True):
    ferry_leg_details: NotRequired[
        "capo_geo_routes.types.route_ferry_leg_details.RouteFerryLegDetails"
    ]
    """<p> FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific to ferry travel. Not supported in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers. </p>"""
    geometry: "capo_geo_routes.types.route_leg_geometry.RouteLegGeometry"
    """<p>Geometry of the area to be avoided.</p>"""
    language: NotRequired["capo_geo_routes.types.language_tag.LanguageTag"]
    """<p> List of languages for instructions within steps in the response. Not supported in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers. </p>"""
    pedestrian_leg_details: NotRequired[
        "capo_geo_routes.types.route_pedestrian_leg_details.RoutePedestrianLegDetails"
    ]
    """<p>Details related to the pedestrian leg.</p>"""
    travel_mode: "capo_geo_routes.types.route_leg_travel_mode.RouteLegTravelMode"
    """<p>Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.</p> <p>Default value: <code>Car</code> </p>"""
    type: "capo_geo_routes.types.route_leg_type.RouteLegType"
    """<p>Type of the leg.</p>"""
    vehicle_leg_details: NotRequired[
        "capo_geo_routes.types.route_vehicle_leg_details.RouteVehicleLegDetails"
    ]
    """<p>Details related to the vehicle leg.</p>"""
    rental_leg_details: NotRequired[
        "capo_geo_routes.types.route_rental_leg_details.RouteRentalLegDetails"
    ]
    """<p>Details related to the rental leg.</p> <note> <p>Not supported in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers.</p> </note>"""
    taxi_leg_details: NotRequired[
        "capo_geo_routes.types.route_taxi_leg_details.RouteTaxiLegDetails"
    ]
    """<p>Details related to the taxi leg.</p> <note> <p>Not supported in <code>ap-southeast-1</code> and <code>ap-southeast-5</code> regions for <a href="https://docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html">GrabMaps</a> customers.</p> </note>"""
    transit_leg_details: NotRequired[
        "capo_geo_routes.types.route_transit_leg_details.RouteTransitLegDetails"
    ]
    """<p>Details related to the transit leg.</p>"""

ferry_leg_details instance-attribute

ferry_leg_details: NotRequired[RouteFerryLegDetails]

FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific to ferry travel. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

geometry instance-attribute

geometry: RouteLegGeometry

Geometry of the area to be avoided.

language instance-attribute

language: NotRequired[LanguageTag]

List of languages for instructions within steps in the response. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

pedestrian_leg_details instance-attribute

pedestrian_leg_details: NotRequired[RoutePedestrianLegDetails]

Details related to the pedestrian leg.

rental_leg_details instance-attribute

rental_leg_details: NotRequired[RouteRentalLegDetails]

Details related to the rental leg.

Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

taxi_leg_details instance-attribute

taxi_leg_details: NotRequired[RouteTaxiLegDetails]

Details related to the taxi leg.

Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

transit_leg_details instance-attribute

transit_leg_details: NotRequired[RouteTransitLegDetails]

Details related to the transit leg.

travel_mode instance-attribute

travel_mode: RouteLegTravelMode

Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.

Default value: Car

type instance-attribute

Type of the leg.

vehicle_leg_details instance-attribute

vehicle_leg_details: NotRequired[RouteVehicleLegDetails]

Details related to the vehicle leg.