change to map-saas api key and env - 2026-04-12
This commit is contained in:
@@ -14,6 +14,7 @@ import '../../../constant/links.dart';
|
||||
import '../../../controller/functions/crud.dart';
|
||||
import '../../../controller/functions/tts.dart';
|
||||
import '../../../controller/home/decode_polyline_isolate.dart';
|
||||
import '../../../env/env.dart';
|
||||
import '../../../main.dart';
|
||||
import '../../../print.dart';
|
||||
import 'dart:ui';
|
||||
@@ -719,7 +720,7 @@ class NavigationController extends GetxController
|
||||
try {
|
||||
// 1. Try SaaS first
|
||||
http.Response response = await http.get(saasUri, headers: {
|
||||
'x-api-key': 'intaleq_secret_2026',
|
||||
'x-api-key': Env.mapSaasKey,
|
||||
});
|
||||
bool useSaaS = response.statusCode == 200;
|
||||
|
||||
@@ -947,7 +948,8 @@ class NavigationController extends GetxController
|
||||
final destBytes = await rootBundle.load('assets/images/b.png');
|
||||
|
||||
await mapController!.addImage('car_icon', carBytes.buffer.asUint8List());
|
||||
await mapController!.addImage('start_icon', startBytes.buffer.asUint8List());
|
||||
await mapController!
|
||||
.addImage('start_icon', startBytes.buffer.asUint8List());
|
||||
await mapController!.addImage('dest_icon', destBytes.buffer.asUint8List());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user