问题描述
我正在尝试使用 HERE Places (Search) API 获取餐厅的图片。
我正在使用“浏览”入口点,然后使用其中的 href 来获取餐厅的详细信息。在其中,我不断得到这个:
media: {
images: {
available:0
items: [ ]
}
评论和评分相同。
根据这里的其他帖子,我很困惑问题是什么,因为一个 post 似乎说这是一个错误,而一个 post 似乎说这就是 API 的方式。
>解决方法
首先,“HERE Places API”已被弃用。您应该迁移到“HERE Geocoding and Search API v7”。看看这个https://developer.here.com/documentation/geocoding-search-api/migration_guide/index.html
正如在这个问题中已经解释的那样 Include Review,Rating and Images in places API ,API 将返回外部供应商(TripAdvisor、Yelp 等)的地点 ID。对于最新的“HERE Geocoding and Search API v7”也是如此。使用这些 ID,您可以从外部系统 API 检索其他详细信息(例如图像、评论等)。