public StoreLocatorViewModel(INavigation navigation) { _navigation = navigation; var settings = GoogleApiSettings.Builder.WithApiKey(Environment.GetEnvironmentVariable("GOOGLE_PLACES_API_KEY")).Build(); _api = new GooglePlacesApiService(settings); _storeRepository = new StoreRepository(); Task.Run(async() => await GetLocationAndStoresAsync()); SetupObservables(); }
public GetSuggestionHandler(IGooglePlacesApiService googlePlacesApiService, IMemoryCache cache) { _googlePlacesApiService = googlePlacesApiService; _cache = cache; }