Bug P4
Status Update
Comments
jf...@google.com <jf...@google.com> #2
Yes please :) Along with a more specific definition of how the Popular Times are determined (how much history? done by mobile device activity? check ins?)
jf...@google.com <jf...@google.com>
a1...@gmail.com <a1...@gmail.com> #3
Making popular times available by day of the week would be awesome
st...@google.com <st...@google.com>
ed...@gmail.com <ed...@gmail.com> #4
It already is Jeffrey, you can toggle by day on mobile or desktop
Description
PendingResult<PlaceLikelihoodBuffer> result = Places.PlaceDetectionApi
.getCurrentPlace(mGoogleApiClient, null);
result.setResultCallback(new ResultCallback<PlaceLikelihoodBuffer>() {
@Override
public void onResult(PlaceLikelihoodBuffer likelyPlaces) {
for (PlaceLikelihood placeLikelihood : likelyPlaces) {
Log.i(TAG, String.format("Place '%s' has likelihood: %g",
placeLikelihood.getPlace().getName(),
placeLikelihood.getLikelihood()));
Log.i(TAG, String.format("Place '%s' has Rating: %g",
placeLikelihood.getPlace().getName(),
placeLikelihood.getPlace().getRating()));
}
likelyPlaces.release();
}
});
or from
Places.GeoDataApi.getPlaceById(mGoogleApiClient, placeId)
.setResultCallback(new ResultCallback<PlaceBuffer>() {
@Override
public void onResult(PlaceBuffer places) {
if (places.getStatus().isSuccess()) {
final Place myPlace = places.get(0);
Log.i(TAG, "Place found: " + myPlace.getName());
Log.i(TAG, "Place found: " + myPlace.getRating());
}
places.release();
}
});
getRating() or getPriceLevel() always return -1 whereas using Google Places API Web Service for the same Place ID returns correct positive value.
*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************