Zum Hauptinhalt springen

LoadRoomsV2

Class Description

Loads Room definitions

RPC Configuration

Rpc Name:

Plain: LoadRoomsV2
Sha1: 4fb9723e94cd7c98b74ed624e1f0aee2b2c62ede
Rpc Call

RPCs can be called by their plain name or their SHA1 representation.

Rpc Parameters:

"building_id" : int 

Requires Login:

true

Requires Context:

Context

The context providing parameter can either be a contagt-id (8-Bytes, Alphaumeric) or an integer as a building id. The context parameter name should make the choice obviouse, the type has not to be defined manually.

true

Requires contextParamName:

building_id

Requires WriteAccess:

WriteAccess

Only accounts that have an explicit write access to the defined context can execute this RPC, no matter if the authentication level matches or not.

false

Requires AuthenticationLevel:

Context

Authentication levels allow the SuperUser to define a by-RPC granular access configuration. If RPCs are chained in a single unified call and lenient is enabled, all allowed RPCs will be executed, while execution will fail entirely with lenient set to false.

STANDARD_USER

Requires Subbuilding Merge Strategy:

MERGE

Cache Configuration

Response Cache

All writing RPCs are not Cacheable, also Caching will be disabled by the paramters nocache and readonly.

Cache enabled:

true

Cache Time to Live:

60

Sample Request

->

{
"building_id": 131
}

<-

{
"latlngs": [
[
{
"roomId": 7933,
"tag": "Rtdjby3S",
"name": "Seminarraum",
"floor": 0,
"noContent": false
},
{
"color": "#333388FF"
},
{
"corners": [
{
"lat": 49.49872011486,
"lng": 8.4686176478863
},
{
"lat": 49.498806343832,
"lng": 8.4686826914549
},
{
"lat": 49.49878892385,
"lng": 8.4687383472919
},
{
"lat": 49.498703130348,
"lng": 8.4686726331711
}
]
}
],
[
{
"roomId": 7934,
"tag": "njMqjt4a",
"name": "Flamingosooososo",
"floor": 0,
"noContent": false
},
{
"color": "#00000000"
},
{
"corners": [
{
"lat": 48.805013017102,
"lng": 9.2077566683292
},
{
"lat": 48.804911439441,
"lng": 9.2078156769276
},
{
"lat": 48.804735665438,
"lng": 9.2077995836735
},
{
"lat": 48.804506010032,
"lng": 9.2077741026878
},
{
"lat": 48.804549291324,
"lng": 9.2076762020588
},
{
"lat": 48.804604938644,
"lng": 9.2075715959072
},
{
"lat": 48.80466323577,
"lng": 9.2074643075466
},
{
"lat": 48.804718882963,
"lng": 9.2073771357536
},
{
"lat": 48.804778063244,
"lng": 9.2072832584381
},
{
"lat": 48.804842543172,
"lng": 9.2071813344955
},
{
"lat": 48.804909672872,
"lng": 9.207090139389
},
{
"lat": 48.804959136804,
"lng": 9.2070981860161
},
{
"lat": 48.805032449327,
"lng": 9.2073301970959
},
{
"lat": 48.805104878462,
"lng": 9.2075635492802
},
{
"lat": 48.805096045646,
"lng": 9.2076386511326
},
{
"lat": 48.805043932002,
"lng": 9.2077204585075
}
]
}
]
]
}