Created
March 13, 2013 22:58
-
-
Save doneill/5157228 to your computer and use it in GitHub Desktop.
ArcGIS Android Geocoding and Place Searching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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