BinghamtonBetterBus-v2/src/shared/lib/src/data/provider.dart
Levi Lesches e8de6475c7
Optimizations (#15)
- Add walking transfers
- Pick route with minimal walking distance, instead of stop count
- Turned `shared` into the new server, client no longer relies on `server`
- Prepare to send full route data (instead of string) to the client
2025-05-04 03:19:06 -04:00

14 lines
308 B
Dart

enum Provider {
bc("BCT", "BC Transit"),
occt("OCCT", "OCC Transport");
const Provider(this.id, this.humanName);
factory Provider.fromJson(String json) => values.firstWhere((value) => value.id == json);
final String id;
final String humanName;
@override
String toString() => humanName;
}