Bing Geocoding of address containing international character RRS feed

  • Question

  • I am trying to geocode location using SOAP service. Reference

    But the application which i developed never geocode the address which has international characters like (Chinese and Japanese) 

    Let me know if is there any specific option i need to provide in GeocodeRequest() so that these address can be geocoded ?
    Thursday, May 24, 2012 6:34 AM


All replies

  • You need to encode you characters. Use Uri.EscapeUriString

    Thursday, May 24, 2012 7:37 AM
  • Thanks for your prompt response, but it does seems to solve my problem either

    Here is the code snippet i have,


     GeocodeRequest geocodeRequest = new GeocodeRequest();

                // Set the credentials using a valid Bing Maps key
                geocodeRequest.Credentials = new GeocodeService.Credentials();
                geocodeRequest.Credentials.ApplicationId = key;

                // Set the full address query
                geocodeRequest.Query = address;

                // Set the options to only return high confidence results 
                ConfidenceFilter[] filters = new ConfidenceFilter[1];
                filters[0] = new ConfidenceFilter();
                filters[0].MinimumConfidence = GeocodeService.Confidence.High;

                // Add the filters to the options
                GeocodeOptions geocodeOptions = new GeocodeOptions();
                geocodeOptions.Filters = filters;
                geocodeRequest.Options = geocodeOptions;

                // Make the geocode request
                GeocodeServiceClient geocodeService = new GeocodeServiceClient();
                GeocodeResponse geocodeResponse = geocodeService.Geocode(geocodeRequest);
                return geocodeResponse;


    I am able to geocode address (for japan) when  geocodeRequest.Culture is specified for japan, but even this doesn't work for address provided in chinese. I tried with all different culture option.

    Thursday, May 24, 2012 8:48 AM
  • Ok, there is limited support for China in the Bing Maps services due to regulations in China. There is a seperate Bing Maps control just for China.

    Monday, May 28, 2012 9:18 AM
  • Alright, thanks. Any reference for the same from your side would be great.
    Tuesday, May 29, 2012 2:15 AM
  • Here are the API's for China:

    Nopte their is no geocoding service. You can only use the AJAX map control which has a javascript method for geocoding.

    • Marked as answer by Suresh Mali Monday, June 4, 2012 6:23 AM
    Tuesday, May 29, 2012 8:18 AM