TTGeoJSONMultiLineString

Objective-C

@interface TTGeoJSONMultiLineString : TTGeoJSONObject

Swift

class 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 (nonatomic, strong, readonly) NSArray<TTGeoJSONLineString *> *_Nonnull lineStrings;

    Swift

    var lineStrings: [TTGeoJSONLineString] { get }