Get nearby places using Snapshot API

suggest change
// Remember to initialize your client as described in the Remarks section 
    .setResultCallback(new ResultCallback<PlacesResult>() {
        public void onResult(@NonNull PlacesResult placesResult) {
            List<PlaceLikelihood> likelihoodList = placesResult.getPlaceLikelihoods();
            if (likelihoodList == null || likelihoodList.isEmpty()) {
                Log.e(getClass().getSimpleName(), "No likely places");

As for getting the data in those places, here are some options:

Place place = placeLikelihood.getPlace();
String likelihood = placeLikelihood.getLikelihood();
Place place = likelihood.getPlace();
String placeName = place.getName();
String placeAddress = place.getAddress();
String placeCoords = place.getLatLng();
String locale = extractFromLocale(place.getLocale()));

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents