- 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
14 lines
308 B
Dart
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;
|
|
}
|