【问题标题】:Why am I not receiving any images from the HERE Places (Search) API?为什么我没有收到来自 HERE Places (Search) API 的任何图像?
【发布时间】:2021-01-27 17:43:15
【问题描述】:

我正在尝试使用 HERE Places (Search) API 获取餐厅的图片。

我正在使用“浏览”入口点,然后使用其中的 href 来获取餐厅的详细信息。在其中,我不断得到这个:

media: {
 images: {
  available:0
  items: [ ]
}

评论和评分也是如此。

根据此处的其他帖子,我很困惑问题出在哪里,因为一个 post 似乎说这是一个错误,而一个 post 似乎说这就是 API 的方式。

【问题讨论】:

    标签: here-api here-maps-rest


    【解决方案1】:

    首先,“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 检索其他详细信息(例如图像、评论等)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-02-17
      • 2021-06-01
      • 2020-10-11
      • 1970-01-01
      • 2021-09-05
      • 2016-01-13
      • 2023-02-17
      相关资源
      最近更新 更多