MRPlacemarkRequest Class Reference

Inherits from NSObject
Declared in MRPlacemarkRequest.h

Overview

Allows the retrieval of placemark objects from Meridian servers.

  app

The Meridian app whose placemarks will be requested.

@property (nonatomic, copy, nonnull) MREditorKey *app

Declared In

MRPlacemarkRequest.h

  identifier

If set, only the placemark with this identifier will be requested.

@property (nonatomic, copy, nullable) NSString *identifier

Declared In

MRPlacemarkRequest.h

  mapKey

If included, results will be restricted to the map indicated.

@property (nonatomic, copy, nullable) MREditorKey *mapKey

Declared In

MRPlacemarkRequest.h

  filters

The filters applied to this request. Only placemarks matching the specified fields/values will be returned.

@property (nonatomic, strong, nullable) NSMutableArray<MRQueryFilter*> *filters

Declared In

MRPlacemarkRequest.h

  filter

Access to first filter (For backwards compatability with previous versions of SDK)

@property (nonatomic, strong, nullable) MRQueryFilter *filter

Declared In

MRPlacemarkRequest.h

  inProgress

Returns YES if the request is currently being in progress.

@property (nonatomic, readonly) BOOL inProgress

Declared In

MRPlacemarkRequest.h

– startWithCompletionHandler:

Starts the asynchronous request.

- (void)startWithCompletionHandler:(MRPlacemarkRequestCompletionHandler _Nullable)completionHandler

Parameters

completionHandler

A block to run when the request is complete.

Discussion

Any calls to startWithCompletionHandler: while [MRPlacemarkRequest inProgress] will fail. The completionHandler block will be called on the main queue and takes two parameters:

  • response contains the results of the request, or nil if an error occurred.
  • error contains the error information if one occured, or nil if the request was successful.

Declared In

MRPlacemarkRequest.h

– cancel

Cancels the request.

- (void)cancel

Declared In

MRPlacemarkRequest.h