diff --git a/data/lib/config.dart b/data/lib/config.dart deleted file mode 100644 index 2693501c..00000000 --- a/data/lib/config.dart +++ /dev/null @@ -1,6 +0,0 @@ -class AppConfig { - static const String placeBaseUrl = - 'https://maps.googleapis.com/maps/api/place/textsearch/json'; - - static const String mapApiKey = 'AIzaSyDbaJSVGU4Jkhd_V_e9esorzh_8yykh160'; -} diff --git a/data/lib/service/place_service.dart b/data/lib/service/place_service.dart index 812fe0de..86425dfe 100644 --- a/data/lib/service/place_service.dart +++ b/data/lib/service/place_service.dart @@ -6,7 +6,6 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:http/http.dart' as http; import '../api/network/client.dart'; -import '../config.dart'; const defaultRadius = 1500; @@ -132,9 +131,8 @@ class PlaceService { String? lat, String? lng, ) async { - final placeRadius = (lat != null && lng != null) ? defaultRadius : ''; - final String url = - '${AppConfig.placeBaseUrl}?query=$query&location=$lat,$lng&radius=$placeRadius&key=${AppConfig.mapApiKey}'; + // final placeRadius = (lat != null && lng != null) ? defaultRadius : ''; + const String url ='url'; final response = await http.get(Uri.parse(url));