HereSDKMapGeometry

@interface HereSDKMapGeometry : NSObject

Class used to generate map geometries

  • Returns the minimal HereSDKMapRect that contains all the points in the given points array.

    Declaration

    Objective-C

    + (HereSDKMapRect)
    minMapRectContainingPoints:(nonnull NSArray<CLLocation *> *)points
                         error:(out NSError *_Nullable *_Nullable)error;

    Swift

    class func minMapRectContainingPoints(_ points: [CLLocation], error: NSErrorPointer) -> HereSDKMapRect

    Parameters

    points

    array of points that the rectangle must contain

    error

    reference to NSError

    Return Value

    A HereSDKMapRect that contains all the points. If HereSDKMapRect is invalid, an error is generated in the referenced NSError object.