GLRouteElevation


@interface GLRouteElevation : NSObject

Class to load height data

  • Requests height profile

    Declaration

    Objective-C

    + (int64_t)requestHeightWithPoints:(GLMapGeoPoint *_Nonnull)points
                                 count:(NSUInteger)count
                       completionBlock:
                           (GLMapHeightDataCompletionBlock _Nonnull)completionBlock;

    Parameters

    points

    where height is needed

    count

    number of points @completionBlock block that is called when request is finished of cancelled

  • Requests height for points in route

    Declaration

    Objective-C

    + (int64_t)requestHeightForRoute:(GLRoute *_Nonnull)routeData
                     completionBlock:
                         (GLMapHeightDataCompletionBlock _Nullable)completionBlock;

    Parameters

    routeData

    route to update with height information @completionBlock block that is called when request is finished of cancelled

  • Cancels request that was started

    Declaration

    Objective-C

    + (void)cancelRequest:(uint64_t)requestID;

    Parameters

    requestID

    ID of request to cancel

  • min

    Minimal value *

    Declaration

    Objective-C

    @property (readonly, atomic) double min;
  • max

    Maximum value *

    Declaration

    Objective-C

    @property (readonly, atomic) double max;
  • Returns height at given point index

    Declaration

    Objective-C

    - (double)heightAtIndex:(uint32_t)index;

    Parameters

    index

    index of point

    Return Value

    Returns height at given point *