/// <summary> /// The location autosuggest service can be used to get a list of places (with corresponding IDs) that /// match the query string. Or to get information about a specific place given it's ID (for example /// city name and country name for an airport) /// </summary> /// <param name="settings">Settings for the query</param> /// <returns></returns> public async Task <List <Location> > QueryLocation(LocationAutosuggestSettings settings, CancellationToken cancellationToken = default(CancellationToken)) { return(await QueryData <LocationAutosuggest, Location>( new LocationAutosuggest(_apiKey, settings), cancellationToken)); }
public LocationAutosuggest(string apiKey, LocationAutosuggestSettings settings) : base(apiKey) { _settings = settings; }