You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To query the current location of the device simply make a call to the `getCurrentPosition` method. You can finetune the results by specifying the following parameters:
229
229
230
230
-`desiredAccuracy`: the accuracy of the location data that your app wants to receive;
231
-
-`timeLimit`: the maximum amount of time allowed to acquire the current location. When the time limit is passed a `TimeOutException` will be thrown and the call will be cancelled. By default no limit is configured.
231
+
-`timeLimit`: the maximum amount of time allowed to acquire the current location. When the time limit is passed a `TimeoutException` will be thrown and the call will be cancelled. By default no limit is configured.
232
232
233
233
```dart
234
234
import 'package:geolocator/geolocator.dart';
@@ -252,7 +252,7 @@ To listen for location changes you can call the `getPositionStream` to receive s
252
252
253
253
-`accuracy`: the accuracy of the location data that your app wants to receive;
254
254
-`distanceFilter`: the minimum distance (measured in meters) a device must move horizontally before an update event is generated;
255
-
-`timeLimit`: the maximum amount of time allowed between location updates. When the time limit is passed a `TimeOutException` will be thrown and the stream will be cancelled. By default no limit is configured.
255
+
-`timeLimit`: the maximum amount of time allowed between location updates. When the time limit is passed a `TimeoutException` will be thrown and the stream will be cancelled. By default no limit is configured.
0 commit comments