implemented RMV public transit module including trip search, station departures, and nearby stop lookup, added "Marianum Connect" API integration with bearer token authentication and auto-refresh logic, integrated geolocator for location-based station search, added persistent storage for favorite stations and recent trip queries, and implemented comprehensive UI for journey details, trip results, and disruption alerts
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/// Base URL for the MarianumConnect backend. Hardcoded against the test
|
||||
/// instance for now; once the production URL is finalised this should move
|
||||
/// into `EndpointData` alongside webuntis/nextcloud.
|
||||
class ConnectEndpoint {
|
||||
ConnectEndpoint._();
|
||||
|
||||
static const String _baseUrl = 'http://muelleel.ddns.net:8080';
|
||||
static const String _apiPrefix = '/api/mobile/v1';
|
||||
|
||||
static Uri resolve(String subpath) =>
|
||||
Uri.parse('$_baseUrl$_apiPrefix/${subpath.startsWith('/') ? subpath.substring(1) : subpath}');
|
||||
}
|
||||
Reference in New Issue
Block a user