I am using Google Places API for getting photos from location.. I got the API call and is working correctly. But my question is how to get the photoreference key for a location..

https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&**photoreference=CoQBegAAAFg5U0y-iQEtUVMfqw4KpXYe60QwJC-wl59NZlcaxSQZNgAhGrjmUKD2NkXatfQF1QRap-PQCx3kMfsKQCcxtkZqQ**&sensor=true&key=AIzaSyCAe7UnfJ6NA9vFkBpswQK1udVzivRdLD0 

photoreference=CoQBegAAAFg5U0y-iQEtUVMfqw4KpXYe60QwJC-wl59NZlcaxSQZNgAhGrjmUKD2NkXatfQF1QRap-PQCx3kMfsKQCcxtkZqQ

有帮助吗?

解决方案

You need to get the photo reference from the Place Search or Place Details request. Details are at : https://developers.google.com/places/documentation/photos

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top