feat: proper routing

This commit is contained in:
2024-04-21 16:27:48 +02:00
parent a6f9cfdaf4
commit 1211c9b16e
9 changed files with 409 additions and 7 deletions

View File

@ -92,6 +92,19 @@ class Feature with _$Feature {
return bail("Feature Geometry is not a Polygon or Point");
}
}
String? get buildingName => type.when(
building: () => name,
lectureHall: () => building,
room: (_) => building,
door: (_) => null,
toilet: (_) => building,
stairs: (_) => building,
lift: (_) => building,
foodDrink: () => building,
publicTransport: (_, __) => null,
pcPool: (_) => building,
);
}
@freezed