update goal issue
This commit is contained in:
@ -668,6 +668,24 @@ class DestinationController extends GetxController {
|
||||
super.onInit();
|
||||
}
|
||||
|
||||
double distanceToStart() {
|
||||
Destination? ds;
|
||||
for (Destination d in destinations) {
|
||||
if (d.cp == -1) {
|
||||
ds = d;
|
||||
}
|
||||
}
|
||||
|
||||
double distanceToDest = double.infinity;
|
||||
if (ds != null) {
|
||||
var distance = const Distance();
|
||||
distanceToDest = distance.as(LengthUnit.Meter,
|
||||
LatLng(currentLat, currentLon), LatLng(ds.lat!, ds.lon!));
|
||||
}
|
||||
print("==== dist==${distanceToDest}");
|
||||
return distanceToDest;
|
||||
}
|
||||
|
||||
int getForcedChckinDistance(Destination dest) {
|
||||
int _retValue = 100;
|
||||
if (dest.cp == -1) {
|
||||
|
||||
Reference in New Issue
Block a user