mirror_service library

Service for discovering and downloading MWM files from CoMaps CDN servers.

This is the runtime library for Flutter apps. For build-time tools, see tool/map_downloader.dart and tool/check_mirrors.dart.

CoMaps CDN URL structure: <base>/maps/<version>/<file> Example: https://mapgen-fi-1.comaps.app/maps/260106/Gibraltar.mwm

Classes

CountriesData
Parsed countries.txt data (JSON format from CoMaps CDN)
Mirror
Represents a mirror server hosting MWM files.
MirrorConfig
Mirror server configuration
MirrorDiscoveryResult
Result of runtime mirror discovery.
MirrorService
Service for discovering and downloading MWM files from CoMaps CDN servers.
MirrorStatus
Result of checking a mirror's availability
MwmRegion
Represents a downloadable MWM region from countries.txt (JSON format)
Snapshot
Represents a snapshot version (YYMMDD format)

Constants

comapsMetaserverUrl → const String
CoMaps metaserver URL for discovering active servers
defaultMirrors → const List<MirrorConfig>
Default CoMaps CDN servers (verified working) URL structure: <base>/maps/<version>/<file>