简体   繁体   English

如何使用Freebase API获取城市的所有旅游景点? 我只能从返回的JSON中获取10

[英]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.

相关问题 Freebase Search API-获取所有结果 - Freebase Search API - Get All Results 如何从地理编码器获取城市名称? - How can I get city name from Geocoder? 如何从MaxMind的GeoLite2 City本地mmdb和关联的Java API获取电话区号? - How can I get phone area code from MaxMind's GeoLite2 City local mmdb and associated Java API? 我如何从该Firebase JSON数据库获取所有图像 - how can i get all Images from this firebase JSON database 如何使用 Google 地点 API 获取城市的地理编码(坐标)和人口(公民人数)? 我应该使用哪些请求? - How to get the geocode(coordinates) and population (count of civils) of the city with the Google places API? Which requests I should use? Apache Camel:我如何从Rest API返回消息? - Apache Camel: How I get message returned from Rest API? 我怎样才能得到从另一个类返回的整数? - How can I get the ints returned from another class? 使用Freebase API获取有关地点的信息 - get information about places with freebase api 如何使用 spring 引导从 HttpServletRequest 获取位置(城市、国家/地区..)? - How can I get the location(city,country.. ) from HttpServletRequest using spring boot? Android:将我从API返回的JSON转换为单个字符串 - Android: Get my returned JSON from an API into individual strings
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM