/// <summary> /// Constructor /// <param name="apiKey">Google Places Api key</param> /// <param name="language">Language of the search request strings</param> /// </summary> public PlacesService(string apiKey, string language) { if (string.IsNullOrEmpty(apiKey)) { throw new ArgumentException("apiKey"); } _urlFactory = new PlacesUrlFactory(apiKey, language); _cachingProvider = new CachingProvider(); }