HereSDKPolygon

@interface HereSDKPolygon : HereSDKMapFeature

Undocumented

  • This function generates a polygon from the given point list.

    Declaration

    Objective-C

    + (nullable instancetype)polygonWithPoints:
        (nonnull NSArray<CLLocation *> *)points;

    Swift

    convenience init?(points: [CLLocation])

    Parameters

    points

    An array of CLLocation objects (minimum 3 points)

    Return Value

    The HereSDKPolygon created from the given points, or nil if not enough points