[英]How to use freebase api to get all the tourist spots of a city? I can only get 10 from the returned JSON
I'm trying to use freebase to get all the tourist spots's name of a city, and I used request like below: 我正在尝试使用Freebase来获取城市的所有旅游景点的名称,并且我使用了如下请求:
https://www.googleapis.com/freebase/v1/topic/m/030qb3tprops=&lang=en&filter=%2Ftravel%2Ftravel_destination%2Ftourist_attractions
this should return 27 values, but in the returned JSON I can only get at most 10 values, how can I get all the tourist spots's name? 这应该返回27个值,但是在返回的JSON中,我最多只能获取10个值,如何获得所有旅游景点的名称?
It looks like the default limit is 10 (which is probably reasonable since you're unlikely to want to show the user a list of dozens in the first overview). 看起来默认的限制是10(这很合理,因为您不太希望在第一个概述中向用户显示几十个列表)。
Try this to get more: 尝试以下操作以获取更多信息:
https://www.googleapis.com/freebase/v1/topic/m/030qb3t?props=&lang=en&filter=%2Ftravel%2Ftravel_destination%2Ftourist_attractions&limit=30
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.