HERE Android SDK Developer's Guide

MapBuildingObject

The class MapBuildingObject is a member of com.here.android.mpa.mapping .

Class Summary

public final class MapBuildingObject

extends com.here.android.mpa.mapping.MapProxyObject, com.here.android.mpa.common.ViewObject, java.lang.Object

This class represents a specific building on the map.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in MapBuildingObject
Methods

public float getHeight ()

Gets the height of the MapBuildingObject

public Identifier getIdentifier ()

Gets the Identifier of the building.

public String getPlaceName ()

Gets the name of the MapBuildingObject.

public GeoCoordinate getPosition ()

Gets the position of the MapBuildingObject

Class Details

This class represents a specific building on the map. Using the Identifier, the MapBuildingObject can be attached to MapBuildingGroup groups to manipulate color and height properties.

Method Details

public float getHeight ()

Gets the height of the MapBuildingObject

Returns:

height in meters relative to ground level.

public Identifier getIdentifier ()

Gets the Identifier of the building. The identifier can be matched against results in PlaceLink

Returns:

Identifier id of the building

public String getPlaceName ()

Gets the name of the MapBuildingObject. This information is only available in 3D Landmarks.

Returns:

Name of the landmark

public GeoCoordinate getPosition ()

Gets the position of the MapBuildingObject

Returns:

GeoCoordinate position of the building