Google Places API - Get more than 10 photos from Details Response?

北城余情 提交于 2019-12-23 12:36:28

问题


Is there any way to get more than 10 photos back in the photos array? I'm using the JavaScript API v3. Perhaps a separate service to get more photos?

https://developers.google.com/maps/documentation/javascript/places#place_details_responses


回答1:


No. As per the documentation, the API returns a maximum of 10 photos. Link




回答2:


Take a look at this: photos[] — an array of photo objects, each containing a reference to an image. A Place Search will return at most one photo object. Performing a Place Details request on the place may return up to ten photos link https://developers.google.com/places/webservice/search



来源:https://stackoverflow.com/questions/29856695/google-places-api-get-more-than-10-photos-from-details-response

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!