6/22/2
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user