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)route
                     completionBlock:
                         (GLMapHeightDataCompletionBlock _Nullable)completionBlock;

    Parameters

    route

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

  • Requests height for points in route

    Declaration

    Objective-C

    + (int64_t)requestOfflineHeightForRoute:(GLRoute *_Nonnull)route
                               allowPartial:(BOOL)allowPartial
                            completionBlock:
                                (GLMapHeightDataCompletionBlock _Nullable)
                                    completionBlock;

    Parameters

    route

    route to update with height information

    allowPartial

    when ‘false’ request will fail if any tile with height data is absent

    completionBlock

    block that is called when request is finished of cancelled

  • Cancels request that was started

    Declaration

    Objective-C

    + (void)cancelRequest:(int64_t)requestID;

    Parameters

    requestID

    ID of request to cancel

  • min

    Minimal value *

    Declaration

    Objective-C

    @property (readonly) double min;
  • max

    Maximum value *

    Declaration

    Objective-C

    @property (readonly) 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 *