在此,SDK抖动不会显示位置图像.始终不返回图像数据 [英] Here SDK flutter does not show places image. Always returns no data for images

查看:42
本文介绍了在此,SDK抖动不会显示位置图像.始终不返回图像数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不熟悉这里"我正在使用Here SDK Flutter 4.3.3.0.我想获取/搜索地点,如果该地点是公司/公司,则获取该地点的照片/图片和/或徽标.

I am new to "Here" and I am using Here SDK Flutter 4.3.3.0. I want to fetch/search for places and get the Place's Photos/Image and or Place's Logo if the place is a business/company.

搜索任何地方时,地方图像 place.details.internalimages 始终为空.我曾尝试在不同国家/地区使用"Chipotle"拉斯维加斯附近的一家餐厅,坎达的一家餐厅和印度的一家购物中心.所有这些都返回0(零)图像.此处API是否支持获取诸如Google Places或TomTom API之类的地方照片?

The place images place.details.internalimages are always empty when I search for any place. I tried for different countries like "Chipotle" a restaurant near Las Vegas, a restaurant in Canda, and a Shopping mall in India. All of these return 0 (zero) images. Does, Here API support to get places photos like Google Places or TomTom API?

看起来像这个API有一个获取WebImage List的方法,但是根本不包含任何数据.请告知,如果我需要使用任何其他方法来获取Place的照片.

Looks like this API has a method to get WebImage List but does not contain any data at all. Please advise, If I need to use any other method to get Place's photos.

另一个问题是,如果我要搜索的地点是餐厅,商店等公司,那么是否可以获得公司徽标?

Another question is, is there a way to get a company logo, if the place I am searching for is a business/company like Restaurant, Store, etc.

下面是我在Flutter应用程序中使用的代码.注意,我能够获得其他字段值,例如标题,地址等.

Below is the code, I use in my Flutter application. Note, I am able to get other field values like title, address, etc.

TextQuery textQuery = TextQuery.withAreaCenterInCountries('some partial place name', geoCoordinates, countryCodes);

searchEngine.suggest(textQuery, searchOptions, onHereSearchSuggestionCompleted);

onHereSearchSuggestionCompleted 函数中,我具有以下代码:

In onHereSearchSuggestionCompleted functions, I have the following code:

if(suggestions.length > 0){
      print('explore - onHereSearchSuggestionCompleted - suggestions count > 0');

      for (Suggestion suggestion in suggestions) {
        print('onHereSearchSuggestionCompleted - current count = ${(suggestions.indexOf(suggestion) + 1)}');
        print('onHereSearchSuggestionCompleted - suggestion title =  ${suggestion.title}');
        print('onHereSearchSuggestionCompleted - place id =  ${suggestion.place.id}');
        print('onHereSearchSuggestionCompleted - place title =  ${suggestion.place.title}');
        print('onHereSearchSuggestionCompleted - place address =  ${suggestion.place.address.addressText}');
        print('onHereSearchSuggestionCompleted - place img length =  ${suggestion.place.details.internalimages.length}');
      }
    }

推荐答案

请注意,由于在flutter中暴露了内部方法的错误,您已经能够在flutter SDK中看到此功能.通常,此功能尚未公开(不适用于本机android和iOS).

Please note, you have been able to see this functionality being exposed in flutter SDK due to a bug exposing internal methods in flutter. In general this functionality is not yet public (not in native android and iOS).

我们计划尽快公开此功能,但是即使这样做,也只有某些符合条件的客户才能访问图像内容.应该有合同协议才能看到此功能

We plan to expose this functionality soon, however even when we do, only certain eligible customers would have access to the image content. There should be contractual agreement to be able to see this functionality

这篇关于在此,SDK抖动不会显示位置图像.始终不返回图像数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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