HERE iOS SDK Developer's Guide

NMAStreetLevelBuilding

Class Summary

class NMAStreetLevelBuilding

Derived from: NMAProxyObject

NMAStreetLevelBuilding represents a building inside an NMAStreetLevelView.

Include: NMAKit.framework/headers/NMAStreetLevelBuilding.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAStreetLevelBuilding

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, assign] NSString *  buildingId

Unique consistent identifier for the building represented by this NMAStreetLevelBuilding instance

[readable, writable, assign] float  highlight

Highlight intensity for this NMAStreetLevelBuilding

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-( NMAGeoCoordinates *) closestPositionToGeoCoordinates:( NMAGeoCoordinates *) coordinates withDistanceLimit:(float) distanceLimit

Finds the closest position on the surface of the building to the specified geocoordinates

Class Details

NMAStreetLevelBuilding represents a building inside an NMAStreetLevelView.

Note:

The building geo coordinates can be obtained from the NMAViewObject::location property

Public Property Details

[readable, assign] NSString * buildingId

Unique consistent identifier for the building represented by this NMAStreetLevelBuilding instance.

Note:

The identifier value is consistent across application sessions for the same building.

[readable, writable, assign] float highlight

Highlight intensity for this NMAStreetLevelBuilding.

Note:

The valid range is from 0.0 to 1.0, where 0.0 represents no highlighting. Invalid values will be clamped to this range.

Instance Method Details

-( NMAGeoCoordinates *) closestPositionToGeoCoordinates:( NMAGeoCoordinates *) coordinates withDistanceLimit:(float) distanceLimit

Finds the closest position on the surface of the building to the specified geocoordinates.

Parameters:

  • coordinates

    The NMAGeoCoordinates to find the closest position to.

  • distanceLimit

    The maximum distance to consider when searching positions. A negative value denotes no limit.

Returns:

The NMAGeoCoordinates representing the surface position closest to the specified geocoordinates, or nil if a position could not be found within the distance limit.