Example #1
0
        private void set(string address)
        {
            UsingBingMaps.ServiceReference1.GeocodeRequest request = new UsingBingMaps.ServiceReference1.GeocodeRequest();

            // Only accept results with high confidence.
            request.Options = new GeocodeOptions()
            {
                Filters = new ObservableCollection <FilterBase>
                {
                    new ConfidenceFilter()
                    {
                        MinimumConfidence = Confidence.High
                    }
                }
            };

            request.Credentials = new Credentials()
            {
                ApplicationId = "ApSTxL8vPW3LwzcfWL1rgKGvLpm4Kmt5_pPrWQfbnU7BqpLDke69cWNWUkqjEVcz"
            };

            request.Query = address;

            // Make asynchronous call to fetch the geo coordinate data.
            _svc.GeocodeAsync(request);
        }
        private void set(string address)
        {
            UsingBingMaps.ServiceReference1.GeocodeRequest request = new UsingBingMaps.ServiceReference1.GeocodeRequest();

            // Only accept results with high confidence.
            request.Options = new GeocodeOptions()
            {
                Filters = new ObservableCollection<FilterBase>
        {
            new ConfidenceFilter()
            {
                MinimumConfidence = Confidence.High
            }
        }
            };

            request.Credentials = new Credentials()
            {
                ApplicationId = "ApSTxL8vPW3LwzcfWL1rgKGvLpm4Kmt5_pPrWQfbnU7BqpLDke69cWNWUkqjEVcz"
            };

            request.Query = address;

            // Make asynchronous call to fetch the geo coordinate data.
            _svc.GeocodeAsync(request);
        }