Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

MDK 3.7.3

Manages spatial entities, including buildings and regions.

This object provides methods for querying, requesting, and loading spatial data from the GiPStech system. It handles interactions with the server and local file system to manage building and region data.

Properties

Provides updates about the current download progress.

Functions

Adds an auxiliary file purpose to be automatically retrieved by future requests.

Returns an empty region.

suspend fun getLocationFromOS(): Location?

Gets the device location from the the OS.

fun loadBuilding(buildingId: String): Building?

Loads a building from the local file system.

fun loadCachedBuildingsByBounds(southWest: Coord2D, northEast: Coord2D): List<Building>
fun loadCachedBuildingsByBounds(swLongitude: Double, swLatitude: Double, neLongitude: Double, neLatitude: Double): List<Building>

Loads buildings from the local cache within the specified bounding box.

fun loadCachedBuildingsNearby(longitude: Double, latitude: Double, radius: Double): List<Building>

Loads buildings from the local cache located near the specified coordinates.

fun loadRegion(southWest: Coord2D, northEast: Coord2D): Region
fun loadRegion(swLongitude: Double, swLatitude: Double, neLongitude: Double, neLatitude: Double): Region

Loads a region from the local file system.

suspend fun queryBuildingsByBounds(southWest: Coord2D, northEast: Coord2D, includeFloors: Boolean = true): List<BuildingInfo>
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.

suspend fun queryBuildingsNearby(coordinates: Coord2D, radius: Double, includeFloors: Boolean = true): List<BuildingInfo>
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.

Removes an auxiliary file purpose from those automatically retrieved by future requests.

suspend fun requestBuilding(buildingId: String, fallback: Boolean = true): Building

Requests a specific building from the server.

suspend fun requestRegion(southWest: Coord2D, northEast: Coord2D, fallback: Boolean = true): Region
suspend fun requestRegion(swLongitude: Double, swLatitude: Double, neLongitude: Double, neLatitude: Double, fallback: Boolean = true): Region

Requests a region from the server.