public class BuildingCollection extends java.lang.Object implements MPModelBase
| Modifier and Type | Method and Description |
|---|---|
Building |
getBuilding(com.google.android.gms.maps.model.LatLng point)
Returns a building where the given point is inside.
|
Building |
getBuildingByAdminId(java.lang.String buildingAdministrativeId) |
Building |
getBuildingById(java.lang.String buildingId) |
static Building |
getBuildingClosestToCameraTarget(com.google.android.gms.maps.model.LatLng cameraTarget,
java.util.List<Building> buildingsInView) |
Building |
getBuildingInBounds(com.google.android.gms.maps.model.LatLngBounds bounds)
This will select the building which bounding box "wraps" the camera target
|
java.util.List<Building> |
getBuildings()
Returns a list of all the buildings for the current solution
|
java.util.List<Building> |
getBuildingsInBounds(com.google.android.gms.maps.model.LatLngBounds bounds)
Builds up a list of visible buildings (their AABB intersects with the given bounds).
|
Building |
getCurrentBuilding(com.google.android.gms.maps.model.LatLngBounds latLngBounds) |
static double |
intersectionArea(double[] bbox,
com.google.android.gms.maps.model.LatLngBounds latLngBounds) |
static double |
intersectionArea(com.google.android.gms.maps.model.LatLngBounds latLngBoundsA,
com.google.android.gms.maps.model.LatLngBounds latLngBoundsB) |
@NonNull public java.util.List<Building> getBuildings()
public static double intersectionArea(@NonNull
com.google.android.gms.maps.model.LatLngBounds latLngBoundsA,
@NonNull
com.google.android.gms.maps.model.LatLngBounds latLngBoundsB)
@Nullable public Building getCurrentBuilding(@NonNull com.google.android.gms.maps.model.LatLngBounds latLngBounds)
@Nullable public Building getBuilding(@NonNull com.google.android.gms.maps.model.LatLng point)
point - @Nullable public Building getBuildingByAdminId(@Nullable java.lang.String buildingAdministrativeId)
@Nullable public Building getBuildingById(@Nullable java.lang.String buildingId)
@Nullable public java.util.List<Building> getBuildingsInBounds(@NonNull com.google.android.gms.maps.model.LatLngBounds bounds)
If the list isn't empty, the first building will be the one with the most area visible
bounds - public static double intersectionArea(@NonNull
double[] bbox,
@NonNull
com.google.android.gms.maps.model.LatLngBounds latLngBounds)
@Nullable public Building getBuildingInBounds(@NonNull com.google.android.gms.maps.model.LatLngBounds bounds)
bounds -