Places API(HERE)仅限于20个条目?加载更多可能吗? [英] Places API (HERE) limited to only 20 entries? Loading more possible?

查看:39
本文介绍了Places API(HERE)仅限于20个条目?加载更多可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此 API 从此处获取住宿.不幸的是,我最多只能得到20家酒店.有可能获得更多结果吗?

I'm using this API from HERE to get accommodations. Unfortunately I only get a maximum of 20 hotels back. Is it possible to get more results?

我在文档中没有找到任何内容,并且尝试添加限制"过滤器没有成功. 这是请求(我必须删除我的应用程序ID和应用程序代码):

I didn't find anything in the documentation and I tried without success to add a "limit" filter. This is the request (I had to delete my app id and the app code):

很高兴知道一种方法如何获得20多个结果.谢谢!

It would be great to know a way how to get more than 20 results. Thanks!

推荐答案

Places API的设计具有最终用户客户角度,并且仅针对给定类别提供有限数量的结果.对于任何给定类别,您仍然可以获得100个结果(最大).您必须在请求中设置size参数.

Places API is designed with an end user customer perspective and provides only a limited number of results for a given category. Still for any given category you will be able to get 100 results(maximum). You have to set size parameter in your request.

以下示例查询提供30个结果.

The below example query provides 30 results.

http://places.demo.api.here.com/places/v1/discover/around?at=52.521%2C13.3807&cat=hotel&size=30&Accept-Language=en-US%2Cen%3Bq%3D0.5&app_id=xxx&app_code=xxxx

如果您需要更多,请联系这里销售团队(selfservesupport@here.com),如果您需要特定业务的所有可用地点.希望这会有所帮助!

If you need more then contact Here sales team (selfservesupport@here.com) if you need all available places of a particular business. Hope this helps!

这篇关于Places API(HERE)仅限于20个条目?加载更多可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆