feat: (broken) implement route map and address autocomplete widgets with associated infrastructure testing scripts

This commit is contained in:
ElPoyo
2026-06-05 11:10:32 +02:00
parent 8c01a21728
commit 21d7bc8b87
40 changed files with 21078 additions and 30 deletions
@@ -17,7 +17,15 @@ class RouteMapWidget extends StatelessWidget {
});
List<LatLng> _decode(String encoded) {
return safeDecodePolyline(encoded);
final pts = safeDecodePolyline(encoded);
// DEBUG: afficher dans la console du navigateur
// ignore: avoid_print
print('[MAP DEBUG] encoded length=${encoded.length}, decoded ${pts.length} points');
if (pts.isNotEmpty) {
// ignore: avoid_print
print('[MAP DEBUG] first=${pts.first.latitude},${pts.first.longitude} last=${pts.last.latitude},${pts.last.longitude}');
}
return pts;
}
LatLngBounds? _computeBounds(List<List<LatLng>> allPoints) {