none
How to Get Longitude and latitude from India addresses RRS feed

  • Question

  • Hi Experts,

    I am getting US Longitudes and latitudes from BingMap service by Entering the addresses in the following way.

    case "United States":
                        BingMapsAddress.AddressLine = AddressLine1;
                        //BingMapsAddress.Locality = AddressCity;
                        BingMapsAddress.PostalTown = AddressCity;
                        BingMapsAddress.AdminDistrict = AddressStateOrProvince;                   
                        BingMapsAddress.PostalCode = AddressPostalCode;
                        BingMapsAddress.CountryRegion = AddressCountry;
                        break;

    But For India I used like

     case "India":
                        BingMapsAddress.Locality = AddressCity;
                        BingMapsAddress.AddressLine = AddressLine1;
                        BingMapsAddress.PostalCode = AddressPostalCode;
                        BingMapsAddress.CountryRegion = AddressCountry;
                        break;

    But It is not calculating the Long and Lat.

    So kindly suggest me how i will write to get the perfect Long and Lat of Indian address

    • Moved by Ricky_Brundritt Tuesday, December 18, 2012 10:49 AM (From:Bing Maps Silverlight, WPF, Windows Phone Controls)
    Monday, December 17, 2012 7:51 AM

Answers

  • There is limited support for addresses in India. A couple of tips; First don't use the Bing Maps SOAP services. This is an old legacy service that is out of date, and slow. Use the Bing Maps REST services, they are much faster, work in any language and much more accurate at geocoding. Documentation on how to use this service in .NET can be found here: http://msdn.microsoft.com/en-us/library/jj819168.aspx The second tip is to set the culture in your request. The list of supported cultures can be found here: http://msdn.microsoft.com/en-us/library/hh441729.aspx

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Tuesday, December 18, 2012 10:40 AM
    • Marked as answer by Ashis_K Wednesday, December 19, 2012 6:11 AM
    Tuesday, December 18, 2012 10:38 AM