Skip to content

Instantly share code, notes, and snippets.

@lobrien
Last active December 30, 2015 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lobrien/7883900 to your computer and use it in GitHub Desktop.
Save lobrien/7883900 to your computer and use it in GitHub Desktop.
Completion-Handler version
public override void TouchesBegan(NSSet touches, UIEvent evt)
{
var addressString = "2 Park Plaza, Boston, MA, USA 02116";
var geocoder = new CLGeocoder();
geocoder.GeocodeAddress(addressString, (addresses, error) => {
foreach(var address in addresses)
{
Console.WriteLine(address);
}
});
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