Skip to content

IsolineConnectionGeometry

Source code in docs_src/capo_geo_routes/types/isoline_connection_geometry.py
class IsolineConnectionGeometry(TypedDict, closed=True):
    line_string: NotRequired["capo_geo_routes.types.line_string.LineString"]
    """<p>A series of <code>[longitude, latitude]</code> coordinate pairs defining the connection path when <code>Simple</code> geometry format is requested. These coordinates can be directly used as the coordinates array in a GeoJSON LineString without transformation.</p> <note> <p>LineString and Polyline are mutually exclusive properties.</p> </note>"""
    polyline: NotRequired["capo_geo_routes.types.polyline.Polyline"]
    """<p>An encoded representation of the connection path when <code>FlexiblePolyline</code> geometry format is requested. This provides a more compact representation suitable for transmission and storage. To convert to GeoJSON, first decode to obtain coordinate pairs, then use those coordinates as the coordinates array in a GeoJSON LineString.</p> <note> <p>LineString and Polyline are mutually exclusive properties.</p> </note>"""

line_string instance-attribute

line_string: NotRequired[LineString]

A series of [longitude, latitude] coordinate pairs defining the connection path when Simple geometry format is requested. These coordinates can be directly used as the coordinates array in a GeoJSON LineString without transformation.

LineString and Polyline are mutually exclusive properties.

polyline instance-attribute

polyline: NotRequired[Polyline]

An encoded representation of the connection path when FlexiblePolyline geometry format is requested. This provides a more compact representation suitable for transmission and storage. To convert to GeoJSON, first decode to obtain coordinate pairs, then use those coordinates as the coordinates array in a GeoJSON LineString.

LineString and Polyline are mutually exclusive properties.