HERE iOS SDK Developer's Guide

NMAPlaceRequest

Class Summary

class NMAPlaceRequest

Derived from: NMARequest

Represents a request to retrieve an NMAPlace object.

Include: NMAKit.framework/headers/NMAPlaceRequest.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAPlaceRequest

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, writable, assign] NMATextFormat   textFormat

The text format of the request results

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(void) addContent:(nonnull NSString *) content

To request additional content

-(void) addImageSizeWithWidth:(NSInteger) width height:(NSInteger) height

To request an image media with specific width-height dimensions

-(nonnull instancetype) init

Class Method Summary

Table 3. Class Methods
Class Methods

+(nonnull instancetype) new

Class Details

Represents a request to retrieve an NMAPlace object.

Public Property Details

[readable, writable, assign] NMATextFormat  textFormat

The text format of the request results.

Note:

The default value is NMATextFormatHTML.

Instance Method Details

-(void) addContent:(nonnull NSString *) content

To request additional content. Result will be provided in editorials property of NMAPlace object

Parameters:

  • content

    The content name. Currently only NMAPlacesContentWikipedia is supported. Unsupported values are ignored.

-(void) addImageSizeWithWidth:(NSInteger) width height:(NSInteger) height

To request an image media with specific width-height dimensions. At least one of the sizes (width or height) needs to be valid (greater than 0).

Note:

The provided width-height are used as upper boundaries for the dimensions of the returned images.

For example:

image_dimensions=w32-h32,w64-h64
image_dimensions=w32-h32,w300
image_dimensions=h200

Parameters:

  • width

    The image width.

  • height

    The image height.

-(nonnull instancetype) init

Instances of this class should not be initialized directly

Class Method Details

+(nonnull instancetype) new

Instances of this class should not be initialized directly