AI-generated Key Takeaways
-
The
IndoorBuildingclass in the Maps SDK represents a building on a map, and twoIndoorBuildingobjects are considered equal if they represent the same physical building. -
You can access information about the building's levels, including the active level, default level, and a list of all levels.
-
The
IndoorBuildingclass provides methods to check if the building is underground and determine equality with other objects. -
Even if a building's structure changes in Google's models, previous
IndoorBuildingobjects will still be considered equal to updated objects, but the content might differ.
Represents a building.
Two IndoorBuildings are .equal() if the physical building they represent is the same. However, if a building's structural model changes, e.g., due to an update to Google's building models, then an old IndoorBuilding object and a new IndoorBuilding object will be .equal(), but might have different contents.
Public Method Summary
| boolean |
equals(Object other)
Tests if this
IndoorBuilding is equal to another. |
| int |
getActiveLevelIndex()
Gets the index in the list returned by
getLevels() of the level that is currently
active in this building (default if no active level was previously set). |
| int |
getDefaultLevelIndex()
Gets the index in the list returned by
getLevels() of the default level for this
building. |
| List<IndoorLevel> |
getLevels()
Gets the levels in the building.
|
| int |
hashCode()
|
| boolean |
isUnderground()
Returns true if the building is entirely underground.
|
Inherited Method Summary
Public Methods
public boolean equals (Object other)
Tests if this IndoorBuilding is equal to another.
Parameters
| other | an Object. |
|---|
Returns
- true if both objects are the same object, that is, this == other.
public int getActiveLevelIndex ()
Gets the index in the list returned by getLevels() of the level that is currently
active in this building (default if no active level was previously set).
public int getDefaultLevelIndex ()
Gets the index in the list returned by getLevels() of the default level for this
building.
public List<IndoorLevel> getLevels ()
Gets the levels in the building. While a level is usually enclosed by a single building, a level might be enclosed by several buildings (e.g., a carpark level might span multiple buildings). The levels are in 'display order' from top to bottom.
public int hashCode ()
public boolean isUnderground ()
Returns true if the building is entirely underground.