【问题标题】:How to use freebase api to get all the tourist spots of a city? I can only get 10 from the returned JSON如何使用freebase api获取一个城市的所有旅游景点?我只能从返回的 JSON 中得到 10
【发布时间】:2014-11-13 16:00:55
【问题描述】:
我正在尝试使用freebase来获取一个城市的所有旅游景点的名称,我使用了如下请求:
https://www.googleapis.com/freebase/v1/topic/m/030qb3tprops=&lang=en&filter=%2Ftravel%2Ftravel_destination%2Ftourist_attractions
这应该返回27个值,但是在返回的JSON中我最多只能得到10个值,我怎样才能得到所有的旅游景点的名字?
【问题讨论】:
标签:
java
json
api
freebase
【解决方案1】:
看起来默认限制是 10(这可能是合理的,因为您不太可能希望在第一次概述中向用户显示数十个列表)。
试试这个以获得更多:
https://www.googleapis.com/freebase/v1/topic/m/030qb3t?props=&lang=en&filter=%2Ftravel%2Ftravel_destination%2Ftourist_attractions&limit=30