Function buildRoutelinesProtected

  • Protected

    Creates route lines from the server response.

    Each route line is an array of legs, where each leg is an array of segments. A segment is a |GeoJSON LineString Feature. Route legs are divided into segments by their congestion levels. If there's no congestions, each route leg consists of a single segment.

    Parameters

    • requestOptions: Partial<Record<string, string>>
    • routes: Route[]
    • selectedRouteIndex: number
    • snappoints: Feature<Point, GeoJsonProperties>[]

    Returns Feature<LineString>[][]

Generated using TypeDoc