TTGeoJSONLineString
@interface TTGeoJSONLineString : TTGeoJSONObject <TTCoordinatesData>
A geometry type comprising a collection of LineStrings.
-
Creates an instance of LineString with provided bounding box and points.
Declaration
Objective-C
- (instancetype _Nonnull) initWithCoordinatesData:(NSArray<NSValue *> *_Nonnull)coordiantesData withBoundingBox:(TTBoundingBox *_Nullable)boundingBox;
Swift
init(coordinatesData coordiantesData: [NSValue], with boundingBox: TTBoundingBox?)
Parameters
coordiantesData
points the points that form this LineString
boundingBox
boundingBox a bounding box encompassing this LineString
Return Value
TTGeoJSONLineString
-
Creates an instance of LineString with provided bounding box and points.
Declaration
Objective-C
- (instancetype _Nonnull) initWithCoordinatesData:(CLLocationCoordinate2D *_Nonnull)coordiantesData withDataCount:(NSInteger)count withBoundingBox:(TTBoundingBox *_Nullable)boundingBox;
Swift
init(coordinatesData coordiantesData: UnsafeMutablePointer<CLLocationCoordinate2D>, withDataCount count: Int, with boundingBox: TTBoundingBox?)
Parameters
coordiantesData
array of coordinates
count
number of elements in array
boundingBox
a bounding box encompassing this LineString
Return Value
TTGeoJSONLineString
-
Array of TTGeoJSONPosition objects.
Declaration
Objective-C
@property (readonly, strong, nonatomic) NSArray<TTGeoJSONPosition *> *_Nonnull points;
Swift
var points: [TTGeoJSONPosition] { get }