Get detailed location information from lat/long pair

Pass a street address or search term and get a list of search results back.

Before you can do this, you need a TGMap . Here's how to get one.

LatLng centerScreen = tgMap.getScreenCenterLatLng();
LatLngBounds screenBounds = tgMap.getScreenBounds(); //bounds from map
TGSearchRequest request = new TGSearchRequest("sushi", centerScreen)
    .setSearchBounds(screenBounds)

TGSearchEndpoint.TGSearchCallback callback = new TGSearchEndpoint.TGSearchCallback() {
@Override
public void onSuccess(TGSearchResponse tgSearchResponse) {
    List results = tgSearchResponse.getResults();
    // Do something with results
}

@Override
public void onFailure(Exception e) {
   // Handle failure
}

TallyGo.getTGSearch().search(request, searchFromTextCallback);
Check out the Android Reference App to see this example in action.