MQShapeSegmenter

@interface MQShapeSegmenter : NSObject

An object that provides sub-arrays from coordinates from a span

  • Creates a sub array from coordinates from span

    Declaration

    Objective-C

    + (nullable MQSpanPathPair *)segmentIndividualSpan:
                                     (nonnull MQPositionSpan *)positionSpan
                                               inShape:(nonnull MQShape *)shape;

    Swift

    class func segmentIndividualSpan(_ positionSpan: MQPositionSpan, in shape: MQShape) -> MQSpanPathPair?

    Parameters

    positionSpan

    Span that indicates start and end of the range

    shape

    MQShape object that represents shape of a route

    Return Value

    MQSpanPathPair object that has the span and subarray of

  • Creates a sub array from coordinates from span

    Declaration

    Objective-C

    + (nullable NSArray<MQSpanPathPair *> *)
    segmentShape:(nonnull MQShape *)shape
       withSpans:(nonnull NSArray<MQPositionSpan *> *)spans;

    Swift

    class func segmentShape(_ shape: MQShape, with spans: [MQPositionSpan]) -> [MQSpanPathPair]?

    Parameters

    shape

    MQShape object that represents shape of a route

    spans

    Array of spans

    Return Value

    Array of span path pair objects