mirrored_repositories/Flutter-Apps-Project/clima/lib
import 'package:geolocator/geolocator.dart';

class Location{
  double longitude = 0.0;
  double latitude = 0.0;

  Future<void> getCurrentLocation() async{
    try{
      Position position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.low);
      longitude = position.longitude;
      latitude = position.latitude;
    }catch(e){
      print(e);
    }
  }
}
