Skip to content
Select language:English

MDK 3.7.3

suspend fun queryBuildingsByBounds(southWest: Coord2D, northEast: Coord2D, includeFloors: Boolean = true): List<BuildingInfo>

Queries the server for the buildings within the specified bounding box.

This method retrieves a list of BuildingInfo objects representing buildings that are located within the given bounding box. It can optionally include floor information for each building.

Return

A list of BuildingInfo objects representing the queried buildings.

Parameters

southWest

The southwest corner of the bounding box.

northEast

The northeast corner of the bounding box.

includeFloors

true to include floor information for each building, false otherwise.

Throws

MdkException.NotInitialized

If the GiPStech library is not initialized.

If the request is cancelled.


suspend fun queryBuildingsByBounds(swLongitude: Double, swLatitude: Double, neLongitude: Double, neLatitude: Double, includeFloors: Boolean = true): List<BuildingInfo>

Queries the server for the buildings within the specified bounding box.

This method retrieves a list of BuildingInfo objects representing buildings that are located within the given bounding box. It can optionally include floor information for each building.

Return

A list of BuildingInfo objects representing the queried buildings.

Parameters

swLongitude

The longitude of the southwest corner of the bounding box.

swLatitude

The latitude of the southwest corner of the bounding box.

neLongitude

The longitude of the northeast corner of the bounding box.

neLatitude

The latitude of the northeast corner of the bounding box.

includeFloors

true to include floor information for each building, false otherwise.

Throws

MdkException.NotInitialized

If the GiPStech library is not initialized.

If the request is cancelled.