Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
201 views
in Technique[技术] by (71.8m points)

google api - Retrieve multiple pictures for each place

Is there a way to retrieve multiple place photos per place request?

I am able to retrieve the picture for each place that is contained within the place response, is there a way to retrieve multiple pictures per place?

question from:https://stackoverflow.com/questions/66055100/retrieve-multiple-pictures-for-each-place

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

That depends on the Places SKU you are using. If you are using Find Place, Nearby Search, or Text Search requests, these can only return a single photo reference per place, when relevant. However, if you use a Place Details request, you can retrieve a no. of photo reference per place. For example:

Do keep in mind that you will still have to make separate place photo requests for each photo reference.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...