HERE Android SDK Developer's Guide

Space

The class Space is a member of com.here.android.mpa.venues3d .

Class Summary

public final class Space

extends com.here.android.mpa.venues3d.Area, com.here.android.mpa.venues3d.SpatialObject, java.lang.Object

This class represents a physical space in a Venue (building), for example a shop in a shopping mall.

[For complete information, see the section Class Details]

See also:

Content

Venue

Nested Class Summary

Table 1. Nested Classes in Space
Nested Classes

public static final enumeration Space.SpaceType

This enumeration defines identifiers for space types.

Method Summary

Table 2. Methods in Space
Methods

public Content getContent ()

This method obtains the Content object associated with the given Space instance.

public int getFloorNumber ()

This method retrieves the floor number assigned to the given Level .

public String getFloorSynonym ()

This method retrieves the floor synonym, for example: 1, B, P1, MEZZ etc.

public Bitmap getIcon (Context context)

This method obtains the icon used to indicate the given space on the map.

public SpaceType getType ()

This method obtains the space type assigned to the given object.

public String getVenueName ()

This method obtains the name of the Venue in which the given space is located.

Class Details

This class represents a physical space in a Venue (building), for example a shop in a shopping mall. When the VenueMapFragment is used, the Space is interactive and the application user can tap on it.

See also:

Content

Venue

Method Details

public Content getContent ()

This method obtains the Content object associated with the given Space instance.

Returns:

An object representing the content of the given Space instance.

public int getFloorNumber ()

This method retrieves the floor number assigned to the given Level . Note that 0 (zero) indicates the ground floor, negative values indicate underground floors and positive values indicate floors above ground level.

Returns:

A value indicating the floor number.

public String getFloorSynonym ()

This method retrieves the floor synonym, for example: 1, B, P1, MEZZ etc.

Returns:

A string object containing the floor synonym.

public Bitmap getIcon (Context context)

This method obtains the icon used to indicate the given space on the map.

Parameters:

  • context

    An object representing the context of the application.

Returns:

A Bitmap object representing the icon or null if the Space does not use an icon.

public SpaceType getType ()

This method obtains the space type assigned to the given object. Use this method to determine if the space is a facility.

Returns:

An object indicating the Space.SpaceType.

public String getVenueName ()

This method obtains the name of the Venue in which the given space is located.

Returns:

A string containing the name of the venue.