如何从 Flickr 检索所有带有地理标记的公共照片?
我目前正在创建一个 php 应用程序,其中一部分涉及将地理标记照片放置在 Google 地图上,我希望能够将 Flickr 中的所有带地理标记的公共照片放置在此地图上,而不仅仅是来自特定用户的照片。我设法使用以下链接抓取了一些看似随机的照片:
http:// /api.flickr.com/services/feeds/geo/flickr.photos.search
但我想获取所有可用的照片,有谁知道我该怎么做?
I am currently creating a php app part of which involves placing geotagged photos on a Google map, I would like to be able to place all geotagged publics photos from Flickr on this map, rather than just those from a specific user. I have managed to grab some seemingly random photos using the following link:
http://api.flickr.com/services/feeds/geo/flickr.photos.search
But I want to grab all the photos available, does anyone know how I could go about doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简单浏览一下 Flickr API,我建议您可能需要执行以下操作:
flickr.panda.getPhotos
请求最近的公开照片,我认为您无法索取所有公开照片(除了您自己的照片)。
flickr.panda.getPhotos
的示例结果如下所示:Having a very brief look through the Flickr API I would suggest you might need to do something like the following:
flickr.panda.getPhotos
I don't think you will be able to request all public photos (other than maybe your own).
An example result from
flickr.panda.getPhotos
looks like this:从 flickr API 查看此内容。使用 1 表示公开照片。您可能还想从 API 中查看 min_upload_date,它允许您在指定日期之后显示照片。
Check out this from the flickr API. Use 1 for public photos. You may also want to check out min_upload_date as well from the API, which allows you to display photos after the date you specify.