Get current location using Snapshot API

suggest change
// Remember to intialize your client as described in the Remarks section
    .setResultCallback(new ResultCallback<LocationResult>() {
        public void onResult(@NonNull LocationResult locationResult) {
            Location location = locationResult.getLocation();
            Log.i(getClass().getSimpleName(), "Coordinates: "location.getLatitude() + "," + 
                location.getLongitude() + ", radius : " + location.getAccuracy());

Feedback about page:

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

Table Of Contents