/// <summary>
 /// Initializes a new instance of the <see cref="PlacesAutocomplete"/> class.
 /// </summary>
 /// <param name="apikey"> The google api key. </param>
 public PlacesAutocomplete(string apikey)
 {
     this.authConfig   = new PlacesConfig(apikey);
     this.httpProvider = new PlacesHttpProvider(authConfig);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlacesHttpProvider"/> class.
 /// </summary>
 /// <param name="config"> A PlacesConfig instance. </param>
 public PlacesHttpProvider(PlacesConfig config)
 {
     this.client     = new HttpClient();
     this.authConfig = config;
 }