none
Bing Geocoding of address containing international character RRS feed

  • Question

  • I am trying to geocode location using SOAP service. Reference http://msdn.microsoft.com/en-us/library/dd221354.aspx

    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

Answers

All replies

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

    http://rbrundritt.wordpress.com

    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.

    http://rbrundritt.wordpress.com

    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:

    http://msdn.microsoft.com/zh-cn/library/bb429619.aspx

    http://msdn.microsoft.com/zh-cn/library/bb429565.aspx

    http://ditu.live.com/

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


    http://rbrundritt.wordpress.com

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