Flickr Geo 查询不返回任何数据
我无法让 Flickr API 返回任何纬度/经度查询数据。
这应该返回一些东西,任何东西。如果我使用纬度/经度也不起作用。如果我首先查找 place_id 然后在查询中使用它,我可以获得一些返回的照片,除非返回的所有照片都来自任何地方而不是地点 id
例如,
我显然删除了我的密钥,用你的替换来测试。
任何帮助表示赞赏,我对此感到生气。
I cannot get the Flickr API to return any data for lat/lon queries.
This should return something, anything. Doesn't work if I use lat/lng either. I can get some photos returned if I lookup a place_id first and then use that in the query, except then all the photos returned are from anywhere and not the place id
Eg,
I deleted out my key obviously, replace with yours to test.
Any help appreciated, I am going mad over this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信,如果您不在查询中添加其他搜索词,Flickr API 将不会返回任何结果。如果我记得文档中的内容,这被视为无界搜索。以下是文档中的引用:
我的应用程序使用相同类型的地理搜索,因此我所做的就是添加一个最短日期的附加搜索词,如下所示:
哦,不要忘记签署您的请求并填写 api_sig 字段。我的经验是,除非您附加 api_key 并签署您的搜索,否则基于地理的搜索行为不会一致。例如,我有时会得到搜索结果,然后当我没有签署查询时,使用相同的搜索不会得到图像。
I believe that the Flickr API won't return any results if you don't put additional search terms in your query. If I recall from the documentation, this is treated as an unbounded search. Here is a quote from the documentation:
My app uses the same kind of geo searching so what I do is put in an additional search term of the minimum date taken, like so:
Oh, and don't forget to sign your request and fill in the api_sig field. My experience is that the geo based searches don't behave consistently unless you attach your api_key and sign your search. For example, I would sometimes get search results and then later with the same search get no images when I didn't sign my query.