Skip to content

Instantly share code, notes, and snippets.

@lobrien
Created December 10, 2013 00:51
Show Gist options
  • Save lobrien/7883976 to your computer and use it in GitHub Desktop.
Save lobrien/7883976 to your computer and use it in GitHub Desktop.
Async version
public override void TouchesBegan(NSSet touches, UIEvent evt)
{
var addressString = "2 Park Plaza, Boston, MA, USA 02116";
var geocoder = new CLGeocoder();
var taskCoding = geocoder.GeocodeAddressAsync(addressString);
taskCoding.ContinueWith((addresses) => {
Console.WriteLine("Continuation");
foreach(var address in addresses.Result)
{
Console.WriteLine(address);
}
Console.WriteLine("Finished");
});
Console.WriteLine("Geocoding the shit out of that");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment