In my application, I have a requirement where I need to track the user's current place and notify the user if he/she stays for some time. So to do this, I am using Google's place SDK to get current place detail, reference link But the problem is output.
If I use Location service with priority PRIORITY_HIGH_ACCURACY or PRIORITY_BALANCED_POWER_ACCURACY, the output of Place SDK is different for the same location.
My Location Request is as below:
LocationRequest mLocationRequest = new LocationRequest();
mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
// or
// mLocationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY);
mLocationRequest.setInterval(1000);
mLocationRequest.setFastestInterval(1000);
As mentioned in above link, we don't have any option to pass current latitude-longitude, as SDK itself manage it.
So can anyone help me how I can get much accurate output from Place SDK.
Sample code of background service