Add repeaters map menu entry

This commit is contained in:
Janez T
2026-03-10 10:38:59 +01:00
parent 86771a3c55
commit 8085b89c07
4 changed files with 682 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ class MeshMapNode {
class MeshMapNodesService {
static const String _nodesEndpoint =
'https://api.meshcore.nz/api/v1/map/nodes';
static const int repeaterType = 1;
static const Duration _cacheTtl = Duration(hours: 24);
static const Duration traceCacheTtl = _cacheTtl;
static const Duration traceTimeout = Duration(seconds: 30);
@@ -182,6 +183,8 @@ class MeshMapNodesService {
return _cachedAt;
}
static bool isRepeater(MeshMapNode node) => node.type == repeaterType;
static Future<void> _storeCache(
List<MeshMapNode> nodes, {
required DateTime cachedAt,