TTGeoJSONMultiLineString

@interface TTGeoJSONMultiLineString : TTGeoJSONObject

A Geometry type comprising a collection of LineStrings.

  • Creates an instance of MultiLineString with provided bounding box and line strings.

    Declaration

    Objective-C

    - (instancetype _Nonnull)
        initWithLineStringArray:
            (NSArray<TTGeoJSONLineString *> *_Nonnull)linesString
                withBoundingBox:(TTBoundingBox *_Nullable)boundingBox;

    Swift

    init(lineStringArray linesString: [TTGeoJSONLineString], with boundingBox: TTBoundingBox?)

    Parameters

    linesString

    lineStrings a collection of line strings that constitute this MultiLineString

    boundingBox

    boundingBox a bounding box encompassing all line strings contained in this MultiLineString

    Return Value

    TTGeoJSONMultiLineString

  • Array of TTGeoJSONLineString objects

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        NSArray<TTGeoJSONLineString *> *_Nonnull lineStrings;

    Swift

    var lineStrings: [TTGeoJSONLineString] { get }