HERE iOS SDK Developer's Guide

NMAPlatformDataResult

Class Summary

class NMAPlatformDataResult

Derived from: NSObject

After a Platform Data Request run, the result is returned with this class.

Include: NMAKit.framework/headers/NMAPlatformDataResult.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAPlatformDataResult

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, assign] NSUInteger  count

The number of entries in the result

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(NSArray< NSString * & gt; *) allKeys

Returns all the layer names

-(NSArray< NMAPlatformDataItemCollection * > *) allValues

Returns the all the data collections

-(void) enumerateKeysAndObjectsUsingBlock:(void)(NSString *key, NMAPlatformDataItemCollection *obj, BOOL *stop)) block

Applies a given block object to the entries in the result

-(NSDictionary< NSString *, NSArray< NSDictionary< NSString *, NSString * & gt; * & gt; * & gt; *) extract

Extracts the data contained into a dictionary

-(instancetype) init

Do not directly instantiate an instance of this class

-( NMAPlatformDataItemCollection *) objectForKeyedSubscript:(NSString *) key

Returns the collection associated with a given key, i

Class Method Summary

Table 3. Class Methods
Class Methods

+(instancetype) new

Class Details

After a Platform Data Request run, the result is returned with this class.

Public Property Details

[readable, assign] NSUInteger count

The number of entries in the result.

Instance Method Details

-(NSArray< NSString * & gt; *) allKeys

Returns all the layer names.

Returns:

The array of all the layer names.

-(NSArray< NMAPlatformDataItemCollection * > *) allValues

Returns the all the data collections.

Returns:

The array of all the collections, i.e. one collection for each layer contained in the result.

-(void) enumerateKeysAndObjectsUsingBlock:(void)(NSString *key, NMAPlatformDataItemCollection *obj, BOOL *stop)) block

Applies a given block object to the entries in the result.

-(NSDictionary< NSString *, NSArray< NSDictionary< NSString *, NSString * & gt; * & gt; * & gt; *) extract

Extracts the data contained into a dictionary. Note that for each NMAPlatformDataItemCollection contained, an array is created which itself contains dictionaries.

Returns:

A dictionary of the string key/array value pairs.

See also:

extract

-(instancetype) init

Do not directly instantiate an instance of this class.

-( NMAPlatformDataItemCollection *) objectForKeyedSubscript:(NSString *) key

Returns the collection associated with a given key, i.e. layer.

Parameters:

  • key

    The layer contained in the result.

Returns:

The collection for the layer data or nil if the key isn't found in result.

Class Method Details

+(instancetype) new

Instances of this class should not be initialized directly