diff --git a/lib/services/reverse_geocoding/geocodingapi.dart b/lib/services/reverse_geocoding/geocodingapi.dart index b5e20ba..9f4b80c 100644 --- a/lib/services/reverse_geocoding/geocodingapi.dart +++ b/lib/services/reverse_geocoding/geocodingapi.dart @@ -18,7 +18,6 @@ class ReverseGeoCodingProvider with ChangeNotifier { String get savedTime => _savedTime; - //To save last Location fetch time saveTime() async { SharedPreferences prefs = await SharedPreferences.getInstance(); @@ -29,8 +28,6 @@ class ReverseGeoCodingProvider with ChangeNotifier { notifyListeners(); } - - Future fetchApiData(ctx) async { if (kDebugMode) { print("Location revgeo"); @@ -55,7 +52,7 @@ class ReverseGeoCodingProvider with ChangeNotifier { final long = coordinates.longitude!.toStringAsFixed(6); final url = Uri.parse( - "https://eu1.locationiq.com/v1/reverse?key=$API_TOKEN&$coordinatesval&format=json"); + "https://eu1.locationiq.com/v1/reverse?key=$apiKey&$coordinatesval&format=json"); final response = await http.get(url);