how to extract images from Google places API android -
placephotometadataresult result3 = places.geodataapi.getplacephotos(mgoogleapiclient3,place.getid()).await(); if (result3.getstatus().issuccess() && result3!= null){ placephotometadatabuffer placephotometadatabuffer = result3.getphotometadata(); placephotometadata photo = placephotometadatabuffer.get(0); bitmap image = photo.getphoto(mgoogleapiclient3).await().getbitmap(); imageview = (imageview)findviewbyid(r.id.image3); imageview.setimagebitmap(image); }
how build google api client in code or there other method access image google place api?
you can following url.
https://maps.googleapis.com/maps/api/place/photo?photoreference="enter photo refernce key here"&maxheight=100&maxwidth=100&key="enter google key here"
Comments
Post a Comment