Skip to content

LegGeometry

Source code in docs_src/capo_location/types/leg_geometry.py
class LegGeometry(TypedDict, closed=True):
    line_string: NotRequired["capo_location.types.line_string.LineString"]
    """<p>An ordered list of positions used to plot a route on a map. </p> <p>The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.</p> <ul> <li> <p>For example, <code>[[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]</code> </p> </li> </ul>"""

line_string instance-attribute

line_string: NotRequired[LineString]

An ordered list of positions used to plot a route on a map.

The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.

  • For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]