commented print statements

This commit is contained in:
2024-01-18 17:11:36 +05:30
parent 591b6f7aed
commit 2fb095bd50

View File

@ -15,7 +15,7 @@ class MatrixService {
String destination = ""; String destination = "";
int i = 0; int i = 0;
for (Destination d in destinations) { for (Destination d in destinations) {
print("---- getting matrix for $d ------------"); //print("---- getting matrix for $d ------------");
if (i == 0) { if (i == 0) {
origin = "${d.lat}, ${d.lon}"; origin = "${d.lat}, ${d.lon}";
@ -52,7 +52,7 @@ class MatrixService {
Map<String, dynamic> cats = {}; Map<String, dynamic> cats = {};
String url = String url =
"https://maps.googleapis.com/maps/api/directions/json?destination=$destination&mode=$mode&waypoints=$locs&origin=$origin&key=AIzaSyAUBI1ablMKuJwGj2-kSuEhvYxvB1A-mOE"; "https://maps.googleapis.com/maps/api/directions/json?destination=$destination&mode=$mode&waypoints=$locs&origin=$origin&key=AIzaSyAUBI1ablMKuJwGj2-kSuEhvYxvB1A-mOE";
print('++++++++$url'); //print('++++++++$url');
final http.Response response = final http.Response response =
await http.get(Uri.parse(url), headers: <String, String>{ await http.get(Uri.parse(url), headers: <String, String>{
'Content-Type': 'application/json; charset=UTF-8', 'Content-Type': 'application/json; charset=UTF-8',