SmartGare
API referenceEndpoints

Get a station's floor plan

Returns the floors by level, with their drawings, and the placed units; empty lists when the station has no plan. **Required permission:** `referential.commercial-unit:read`

GET/referential/v1/stations/{stationId}/floor-plan

Returns the floors by level, with their drawings, and the placed units; empty lists when the station has no plan.

Required permission: referential.commercial-unit:read

AuthorizationBearer <token>

In: header

Response Body

*/*

curl -X GET "https://example.com/referential/v1/stations/{stationId}/floor-plan"
{  "floors": [    {      "drawing_svg": "string",      "height_m": 0,      "id": "string",      "level": 0,      "name": "string",      "sample": true,      "width_m": 0    }  ],  "placements": [    {      "commercial_unit_id": "string",      "drawn_m2": 0,      "floor_id": "string",      "level": 0,      "outline": [        {          "x": 0.1,          "y": 0.1        }      ]    }  ],  "station_id": "string"}