Hi,
I´m getting lat/lon using the function below. Is this the most accuracy I can get? Is there any way to get a return value on the likely accuracy of a reading? ie, x satellites visible? Or accurate to xx meters?
import 'package:geolocator/geolocator.dart';
Future<List<double>> getPosition() async {
// get current location and return latitude and longitude as doubles
// Use the geolocator package to get the current position
Position position = await Geolocator.getCurrentPosition(
desiredAccuracy: LocationAccuracy.high);
// Extract the latitude and longitude from the position object
double latitude = position.latitude;
double longitude = position.longitude;
// Return the latitude and longitude as a list of doubles
return [latitude, longitude]; }