HERE Android SDK Developer's Guide

Level

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

Class Summary

public final class Level

extends java.lang.Object

This class represents a storey in a Venue (building).

[For complete information, see the section Class Details]

See also:

Venue

OuterArea

VenueController

Method Summary

Table 1. Methods in Level
Methods

public boolean equals (Object o)

public Area getAreaAtPosition (GeoCoordinate position)

This method retrieves the Area of the level at a given position.

public GeoCoordinate getCenter ()

This method retrieves the coordinates of the center of the given Level .

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 java.util.List <Space> getNearbySpaces (GeoCoordinate position, float radius)

This method retrievs spaces that intersect a circle around a given coordinate.

public java.util.List <OuterArea> getOuterAreas ()

This method retrieves a list of OuterArea objects associated with the given Level instance.

public java.util.List <Space> getSortedSpaces ()

This method retrieves an alphabetically-ordered list of Space objects for the given instance of Level , excluding facilities.

public java.util.List <Space> getSortedSpacesByCategory (String categoryName)

This method retrieves an alphabetically-ordered list of Space objects that belong to the category specified by the caller for all the OuterArea instances that belong to the given Level .

public java.util.List <Space> getSortedSpacesWithFacilities ()

This method retrieves an alphabetically-ordered list of all the Space objects associated with all the OuterArea objects of the given instance of Level .

public int hashCode ()

Class Details

This class represents a storey in a Venue (building). A Venue consists of one or more Level objects. Each Level in turn includes one or more OuterArea objects.

Level cannot be instantiated directly. Instead, it can be obtained by calling the getLevels() method.

See also:

Venue

OuterArea

VenueController

Method Details

public boolean equals (Object o)

Parameters:

  • o

public Area getAreaAtPosition (GeoCoordinate position)

This method retrieves the Area of the level at a given position.

Parameters:

  • position

    The position for which to return the area.

public GeoCoordinate getCenter ()

This method retrieves the coordinates of the center of the given Level .

Returns:

An object containing the geographic coordinates of the center of the given level.

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 java.util.List <Space> getNearbySpaces (GeoCoordinate position, float radius)

This method retrievs spaces that intersect a circle around a given coordinate.

Parameters:

  • position

    The position of the center of the circle.

  • radius

    The radius of the circle in meters.

public java.util.List <OuterArea> getOuterAreas ()

This method retrieves a list of OuterArea objects associated with the given Level instance. Depending on the physical appearance of the building, a Level can include one or more OuterArea objects. An OuterArea object can be used to get the Space objects associated with it.

Returns:

A list of instances of OuterArea.

public java.util.List <Space> getSortedSpaces ()

This method retrieves an alphabetically-ordered list of Space objects for the given instance of Level , excluding facilities. This method returns the Space objects for all OuterArea objects associated with the given instance of Level

Returns:

A list of Space objects, excluding facilities.

public java.util.List <Space> getSortedSpacesByCategory (String categoryName)

This method retrieves an alphabetically-ordered list of Space objects that belong to the category specified by the caller for all the OuterArea instances that belong to the given Level .

Parameters:

  • categoryName

    The category of OuterArea instances to retrieve.

Returns:

A list of Space objects.

public java.util.List <Space> getSortedSpacesWithFacilities ()

This method retrieves an alphabetically-ordered list of all the Space objects associated with all the OuterArea objects of the given instance of Level . Facilities are included in the returned list.

Returns:

A list of Space objects, including facilities.

public int hashCode ()

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.