Skip to content

Instantly share code, notes, and snippets.

@doneill
Created March 13, 2013 22:58
Show Gist options
  • Select an option

  • Save doneill/5157228 to your computer and use it in GitHub Desktop.

Select an option

Save doneill/5157228 to your computer and use it in GitHub Desktop.
ArcGIS Android Geocoding and Place Searching
// Get parameters on the UI thread
LocatorFindParameters findParams = new LocatorFindParameters("Yankee Stadium");
// Run locator task off UI thread, e.g. AsyncTask
Locator locator = new Locator();
try {
results = locator.find(params[0]);
}catch (Exception e) {
e.printStackTrace();
}
return results;
// Work with results on UI Thread
Point location = result.get(0).getLocation();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment