在Places API中包含评论,评分和图片 [英] Include Review,Rating and Images in places API

查看:85
本文介绍了在Places API中包含评论,评分和图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在实现Places rest api,在请求中我包括了

I am implementing Places rest api, In request i have included show_content and show_refs like

https://...v1/places/...&show_content=wikipedia&show_refs=tripadvisor,facebook

我正在接收带有TripAdvisor ID的对象作为响应,但评分和评论对象始终为空.

I m receiving object with TripAdvisor id in response but rating and review objects are always empty.

但是,当我尝试在wego.here.com上搜索相同的地方时,我可以看到来自TripAdvisor的评论和图像,并且我的api调用没有任何区别.我如何从here.com获取这些对象中的数据.

However when i try to search same place on wego.here.com i can see the reviews and images in response from TripAdvisor, and there is no difference in my api call. How i can get data in these objects from here.com.

我是否需要实现facebook graph api或TripAdvisor内容api,并使用TripAdvisor标识来获取其他内容,例如图像,来自外部来源的评论.

Do i need to implement facebook graph api or TripAdvisor content api and use TripAdvisor id to get the additional content like images,reviews from external sources.

推荐答案

是的,如Places(搜索)API文档中所述,您仅在响应中获得外部系统(TripAdvisor等)的位置/位置ID.使用ID,您可以从外部系统API(在本例中为TripAdvisor API)中检索其他详细信息(例如图像,评论等).

Yes, as stated in the Places (Search) API documentation, you only get the place/location IDs of external systems (TripAdvisor, etc) in responses. With the IDs, you can retrieve other details (such images, reviews, etc) from external system APIs (in this case the TripAdvisor API).

https://developer.here.com/documentation/places/topics_api/resource-search.html

这篇关于在Places API中包含评论,评分和图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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