BuildingCollection

open class BuildingCollection : MPModelBase

Author

Daniel Nielsen - Copyright © 2017 MapsPeople A/S. All rights reserved.

Functions

Link copied to clipboard
@Nullable
open fun getBuilding(@NonNull point: LatLng): Building
Returns a building where the given point is inside.
Link copied to clipboard
@Nullable
open fun getBuildingByAdminId(@Nullable buildingAdministrativeId: String): Building
Link copied to clipboard
@Nullable
open fun getBuildingById(@Nullable buildingId: String): Building
Link copied to clipboard
@Nullable
open fun getBuildingClosestToCameraTarget(@Nullable cameraTarget: LatLng, @Nullable buildingsInView: List<Building>): Building
Link copied to clipboard
@Nullable
open fun getBuildingInBounds(@NonNull bounds: LatLngBounds): Building
This will select the building which bounding box "wraps" the camera target
Link copied to clipboard
@Nullable
open fun getBuildingsInBounds(@NonNull bounds: LatLngBounds): List<Building>
Builds up a list of visible buildings (their AABB intersects with the given bounds).
Link copied to clipboard
@Nullable
open fun getCurrentBuilding(@NonNull latLngBounds: LatLngBounds): Building
Link copied to clipboard
open fun intersectionArea(@NonNull latLngBoundsA: LatLngBounds, @NonNull latLngBoundsB: LatLngBounds): Double
open fun intersectionArea(@NonNull bbox: Array<Double>, @NonNull latLngBounds: LatLngBounds): Double

Properties

Link copied to clipboard
@get:NonNull
val buildings: List<Building>