Skip to content
Select language:English

MDK 3.7.3

suspend fun queryBuildingsNearby(coordinates: Coord2D, radius: Double, includeFloors: Boolean = true): List<BuildingInfo>

Queries the server for the buildings at the specified location within a specified radius.

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

Return

A list of BuildingInfo objects representing the queried buildings.

Parameters

coordinates

The coordinates of the location.

radius

The radius (in meters) within which to search for buildings.

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 queryBuildingsNearby(longitude: Double, latitude: Double, radius: Double, includeFloors: Boolean = true): List<BuildingInfo>

Queries the server for the buildings at the specified location within a specified radius.

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

Return

A list of BuildingInfo objects representing the queried buildings.

Parameters

longitude

The longitude of the location.

latitude

The latitude of the location.

radius

The radius (in meters) within which to search for buildings.

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.