This commit is contained in:
Hamza-Ayed
2024-06-22 13:30:50 +03:00
parent 2bd242b28c
commit 1352fc8b36
48 changed files with 17 additions and 295 deletions

View File

@@ -26,7 +26,6 @@ class PointsForRiderController extends GetxController {
}
void removeLocation(int index) {
print(index);
locations.removeAt(index);
update();
}
@@ -96,25 +95,18 @@ class WayPointController extends GetxController {
}
void updatePlace(int index, String input) async {
print(myLocation);
print(index);
print(input);
var url =
'${AppLink.googleMapsLink}place/nearbysearch/json?keyword=$input&location=${myLocation.latitude},${myLocation.longitude}&radius=50000&language=en&key=${AK.mapAPIKEY.toString()}';
print(url);
var response = await CRUD().getGoogleApi(link: url, payload: {});
// final place = input;
// print(response);
// if (index == 0) {
List<dynamic> newList = [];
placeListResponse.add(newList);
newList = response['results'];
print(newList);
placeListResponse[index].add(newList);
update();
// }
print(placeListResponse[index]);
update();
}