Reputation: 454
I am building an app that uses Places API. I've included the PlacePicker widget. When the user selects a place, the app extracts data about it, such as its address, phone number, and name. I haven't been able to find a way to request an image associated with the place. If anyone knows, please help. Thanks.
Upvotes: 0
Views: 4158
Reputation: 1115
Hey try this which help me to retrieve photos link
You have to create url like this for image https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=CnRtAAAATLZNl354RwP_9UKbQ_5Psy40texXePv4oAlgP4qNEkdIrkyse7rPXYGd9D_Uj1rVsQdWT4oRz4QrYAJNpFX7rzqqMlZw2h2E2y5IKMUZ7ouD_SlcHxYq1yL4KbKUv3qtWgTK0A6QbGh87GB3sscrHRIQiG2RrmU_jF4tENr9wGS_YxoUSSDrYjWmrNfeEHSGSc3FyhNLlBU&key=AIzaSyBly7LrT35O-6tgq1z8wu38tfTuyiDPsCg
Here URL is https://maps.googleapis.com/maps/api/place/photo?
maxwidth,photoreference,maxhight is get from google place api and key is your google api key
Upvotes: 3