HERE Android SDK Developer's Guide

Area

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

Class Summary

public class Area

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

This class is a base class that represents a physical area within a Venue .

[For complete information, see the section Class Details]

See also:

Venue

Level

OuterArea

Space

Constructor Summary

Table 1. Constructors in Area
Constructors

Area (AreaImpl impl)

Package Private Constructor

Method Summary

Table 2. Methods in Area
Methods

public GeoBoundingBox getBoundingBox ()

This method retrieves the bounding box for this Area .

public GeoCoordinate getCenter ()

This method retrieves the center of the bounding box of the Area .

public String getName ()

This method retrieves the human-readable name related to the holder of the spatial area.

public GeoPolygon getPolygon ()

This method retrieves the GeoPolygon for this Area , if it exists.

Class Details

This class is a base class that represents a physical area within a Venue . It is extended by the classes OuterArea and Space , both of which have a bounding box and center coordinates, and possibly a GeoPolygon .

This class can not be instantiated directly. Subclasses OuterArea and Space can be obtained by methods on Level .

See also:

Venue

Level

OuterArea

Space

Constructor Details

Area (AreaImpl impl)

Package Private Constructor

Parameters:

  • impl

Method Details

public GeoBoundingBox getBoundingBox ()

This method retrieves the bounding box for this Area .

Returns:

An object representing the bounding box for the given area.

public GeoCoordinate getCenter ()

This method retrieves the center of the bounding box of the Area .

Returns:

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

public String getName ()

This method retrieves the human-readable name related to the holder of the spatial area. This can be, for example, the name of a shop.

Returns:

The string containing the name.

public GeoPolygon getPolygon ()

This method retrieves the GeoPolygon for this Area , if it exists.

Returns:

A GeoPolygon or null.