feat(api-keys): Replace Google Places API key with Google Maps API key across the application
This commit is contained in:
@@ -262,7 +262,7 @@ class HubRepositoryImpl
|
||||
<String, String>{
|
||||
'place_id': placeId,
|
||||
'fields': 'address_component',
|
||||
'key': AppConfig.googlePlacesApiKey,
|
||||
'key': AppConfig.googleMapsApiKey,
|
||||
},
|
||||
);
|
||||
try {
|
||||
|
||||
@@ -25,7 +25,7 @@ class HubAddressAutocomplete extends StatelessWidget {
|
||||
return GooglePlaceAutoCompleteTextField(
|
||||
textEditingController: controller,
|
||||
focusNode: focusNode,
|
||||
googleAPIKey: AppConfig.googlePlacesApiKey,
|
||||
googleAPIKey: AppConfig.googleMapsApiKey,
|
||||
debounceTime: 500,
|
||||
countries: HubsConstants.supportedCountries,
|
||||
isLatLngRequired: true,
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:krow_core/core.dart';
|
||||
|
||||
import '../../domain/repositories/place_repository.dart';
|
||||
|
||||
class PlaceRepositoryImpl implements PlaceRepository {
|
||||
@@ -18,7 +20,7 @@ class PlaceRepositoryImpl implements PlaceRepository {
|
||||
<String, String>{
|
||||
'input': query,
|
||||
'types': '(cities)',
|
||||
'key': AppConfig.googlePlacesApiKey,
|
||||
'key': AppConfig.googleMapsApiKey,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user