審査用に文言などを修正 ver.4.5.1 467
This commit is contained in:
@ -221,7 +221,7 @@ class DestinationController extends GetxController {
|
||||
if (accuracy == null) {
|
||||
return true; // 位置情報が取得できていない場合、GPS信号が弱いと見なす
|
||||
}
|
||||
return accuracy > 50;
|
||||
return accuracy > 60;
|
||||
//return locationController.currentPosition.value?.accuracy ?? double.infinity > 50;
|
||||
}
|
||||
|
||||
@ -1335,11 +1335,14 @@ class DestinationController extends GetxController {
|
||||
prevLon = currentLon;
|
||||
}
|
||||
lastValidGPSLocation = LatLng(currentLat, currentLon);
|
||||
lastValidLat = currentLat;
|
||||
lastValidLon = currentLon;
|
||||
okToUseGPS = true;
|
||||
lastGPSDataReceivedTime = DateTime.now();
|
||||
hasReceivedGPSData = true;
|
||||
|
||||
} else {
|
||||
debugPrint("....position is null....");
|
||||
checkGPSDataReceived();
|
||||
|
||||
// 信号強度が低い場合、最後に取得した高いまたは中程度の位置情報を使用
|
||||
@ -1351,6 +1354,9 @@ class DestinationController extends GetxController {
|
||||
longitude: lastValidGPSLocation.longitude,
|
||||
accuracy: 0,
|
||||
);
|
||||
currentLat = position.latitude;
|
||||
currentLon = position.longitude;
|
||||
okToUseGPS = false;
|
||||
|
||||
/*
|
||||
if (lastValidLat != 0.0 && lastValidLon != 0.0) {
|
||||
|
||||
Reference in New Issue
Block a user