this code returns an empty string. What can I do to return something please?
CivicAddressResolver civicResolver = new CivicAddressResolver();
CivicAddress c = civicResolver.ResolveAddress(new GeoCoordinate(39,77));
textBlock1.Text = c.City;
The MSDN documentation for CivicAddressResolver.ResolveAddress() suggests that checking c.IsUnknown before trying to access c.City would be a good idea.
From the MSDN docs (phone specific version):
This method is not implemented in the current release.
I would think that this is why you are not getting a result on Windows Phone 7.
Hopefully this functionality will be available soon. (And preferably via an OTA update.)
If you are not doing this on the phone please retag this question appropriately.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With