GeocodeAddressAsync is throwing a NSErrorException on some addresses but not all

Has anyone had issues when using Xamarin to parse location strings?

Eg. I'm passing the address "Buffalo, NY 14267" into MonoTouch.CoreLocation.CLGeocoder.GeocodeAddressAsync() which then throws an unuseful exception.

However if I use an address like "Addison, TX 75001" then there is no error.

The code is simply:

CLPlacemark[] placemarks = await _geoCoder.ReverseGeocodeLocationAsync(new CLLocation((double)location.Latitude, (double)location.Longitude));

Tagged:

Answers

Sign In or Register to comment.