HERE iOS SDK Developer's Guide

NMACLE2AttributeRequest

Class Summary

class NMACLE2AttributeRequest

Derived from: NMACLE2Request

Represents a custom geometry search request to retrieve all user-defined geometries along with its attribute on a specified layer.

Include: NMAKit.framework/headers/NMACLE2AttributeRequest.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMACLE2AttributeRequest

[For complete information, see the section Class Details]

Instance Method Summary

Table 1. Instance Methods
Instance Method Summary

-(nullable instancetype) initWithLayer:(nonnull NSString *) layerId query:(nonnull NSString *) query

Creates an Attribute Search Request

-(nullable instancetype) initWithLayers:(nonnull NSArray< NSString * > *) layerIds query:(nonnull NSString *) query

Creates an Attribute Search Request that searches through multiple layers

Class Details

Represents a custom geometry search request to retrieve all user-defined geometries along with its attribute on a specified layer.

A new NMACLE2AttributeRequest should be created for each distinct search.

Note:

this class is currently only supported in online mode.

Instance Method Details

-(nullable instancetype) initWithLayer:(nonnull NSString *) layerId query:(nonnull NSString *) query

Creates an Attribute Search Request. This method returns nil if initialization failed.

Note:

The query assures that only expressions that evaluate to true are returned. An example of a query is: "RATING > 3 && NAME != 'MyPlace23'"

Parameters:

  • layerId

    Layer name to search.

  • query

    A JavaScript expression as a string being evaluated for each geometry.

-(nullable instancetype) initWithLayers:(nonnull NSArray< NSString * > *) layerIds query:(nonnull NSString *) query

Creates an Attribute Search Request that searches through multiple layers. This method returns nil if initialization failed.

Note:

the query assures that only expression which evaluates to true will be returned.

Parameters:

  • layerIds

    An NSArray with names specifying the layers to search.

  • query

    A JavaScript expression as a string being evaluated for each geometry.