getLocations method

Future<LatLong> getLocations()

Implementation

Future<LatLong> getLocations() async {
  try {
    final position = await determinePosition();
    return LatLong(lat: position.latitude, long: position.longitude);
  } catch (e) {
    Logger.e("get location error: $e");
    return defaultLocation;
  }
}