我正在使用Google Places API从位置获取照片..我收到了API调用并且工作正常。但我的问题是如何获取位置的photoreference
密钥。
https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&**photoreference=CoQBegAAAFg5U0y-iQEtUVMfqw4KpXYe60QwJC-wl59NZlcaxSQZNgAhGrjmUKD2NkXatfQF1QRap-PQCx3kMfsKQCcxtkZqQ**&sensor=true&key=AIzaSyCAe7UnfJ6NA9vFkBpswQK1udVzivRdLD0
photoreference = CoQBegAAAFg5U0y-iQEtUVMfqw4KpXYe60QwJC-wl59NZlcaxSQZNgAhGrjmUKD2NkXatfQF1QRap-PQCx3kMfsKQCcxtkZqQ
答案 0 :(得分:2)
您需要从Place Search
或Place Details
请求中获取照片参考。详细信息位于:https://developers.google.com/places/documentation/photos