void GetMatchingAddress(Exception ex) { string searchString = textBox.Text.Trim(); if (searchString.Length > 5) { _lastCheck = searchString; MobileSrc.Services.GeocodeServices.GeocodeRequest req = new MobileSrc.Services.GeocodeServices.GeocodeRequest(); req.Credentials = new MobileSrc.Services.GeocodeServices.Credentials(); req.Credentials.ApplicationId = BingMapsApiKey; req.Query = searchString; req.Options = new MobileSrc.Services.GeocodeServices.GeocodeOptions(); req.Options.Count = 15; req.Options.Filters = new List <MobileSrc.Services.GeocodeServices.FilterBase>(); MobileSrc.Services.GeocodeServices.ConfidenceFilter filter = new MobileSrc.Services.GeocodeServices.ConfidenceFilter(); filter.MinimumConfidence = MobileSrc.Services.GeocodeServices.Confidence.Low; req.Options.Filters.Add(filter); _geocodeClient.GeocodeAsync(req); } }
void GetMatchingAddress(Exception ex) { string searchString = textBox.Text.Trim(); if (searchString.Length > 5) { _lastCheck = searchString; MobileSrc.Services.GeocodeServices.GeocodeRequest req = new MobileSrc.Services.GeocodeServices.GeocodeRequest(); req.Credentials = new MobileSrc.Services.GeocodeServices.Credentials(); req.Credentials.ApplicationId = BingMapsApiKey; req.Query = searchString; req.Options = new MobileSrc.Services.GeocodeServices.GeocodeOptions(); req.Options.Count = 15; req.Options.Filters = new List<MobileSrc.Services.GeocodeServices.FilterBase>(); MobileSrc.Services.GeocodeServices.ConfidenceFilter filter = new MobileSrc.Services.GeocodeServices.ConfidenceFilter(); filter.MinimumConfidence = MobileSrc.Services.GeocodeServices.Confidence.Low; req.Options.Filters.Add(filter); _geocodeClient.GeocodeAsync(req); } }