CampusMapRoomDto typedef

CampusMapRoomDto = ({String id, String layerName, String nameEn, String nameZh, String number, CampusMapGeometryDto polygons})

A room's searchable metadata and optional geometry from one indoor layer.

CampusMapRoomDto.polygons is empty in metadata-only search index requests.

Implementation

typedef CampusMapRoomDto = ({
  /// The feature ID qualified by its floor layer, without the workspace prefix.
  String id,

  /// The fully qualified WFS layer that owns this space.
  String layerName,

  /// The Chinese space name, or an empty string when absent.
  String nameZh,

  /// The English space name, or an empty string when absent.
  String nameEn,

  /// The classroom or space number, or an empty string when absent.
  String number,

  /// The room polygons, or an empty list for a metadata-only request.
  CampusMapGeometryDto polygons,
});