This is a migrated thread and some comments may be shown as answers.

BingGeocodeProvider question

1 Answer 23 Views
Map
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 14 Jan 2013, 09:43 AM
I'm sending the following request to a BingGeocodeProvider.

            var address = new Address
            {
                Locality = city,
                CountryRegion = "United Kingdom"
            };
            var request = new GeocodeRequest { Address = address };
            BingGeocodeProvider.GeocodeAsync(request);

This works but if I put the 'city' in the 'PostalTown' I don't get any results returned.

My question is why? It appears that if I put data in some fields (like PostalCode) it works, but other fields don't. Is there any documentation on what works/is required?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 14 Jan 2013, 12:57 PM
Hi Rob,

The RadMap just provides the interface for the Bing services. In fact the requests are performed on the Bing. I would recommend to take a look at the following MSDN article which contains description of properties of the Address class:
http://msdn.microsoft.com/en-us/library/cc966788.aspx

Kind regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Map
Asked by
Rob
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or