FUIRoute

open class FUIRoute<LineGeometry, PointGeometry> where LineGeometry : FUIPolyline, PointGeometry : FUIPoint
extension FUIRoute: Hashable

A generic class supports both MapKit and Esri for storing route segments and stops information.

  • The name of the route.

    Declaration

    Swift

    open var routeName: String?
  • Route segments that build up this route. Esri route only contains one segment.

    Declaration

    Swift

    open var segments: [LineGeometry]
  • Route stops of this route.

    Declaration

    Swift

    open var vertexes: [PointGeometry]
  • Initializing a route instance with a set of route segments and stops.

    Declaration

    Swift

    public init(segments: [LineGeometry], vertexes: [PointGeometry], routeName: String?)

    Parameters

    segments

    Route segments of this route.

    vertexes

    Route stops of this route.

    Return Value

    Returns a initialized route instance.