Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET How to find CivicAddress?

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;
like image 497
Alan Avatar asked Dec 06 '25 20:12

Alan


2 Answers

The MSDN documentation for CivicAddressResolver.ResolveAddress() suggests that checking c.IsUnknown before trying to access c.City would be a good idea.

like image 97
Mike Chess Avatar answered Dec 08 '25 10:12

Mike Chess


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.

like image 38
Matt Lacey Avatar answered Dec 08 '25 11:12

Matt Lacey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!