简体   繁体   English

我可以使用 Here Android SDK 和 Here Platform Data Extension 获取沿途的交通标志数据吗?

[英]Can I use the Here Android SDK and Here Platform Data Extension to get the traffic sign data along the route?

Can I use the Here Android SDK and Here Platform Data Extension to get the traffic sign data along the route?我可以使用 Here Android SDK 和 Here Platform Data Extension 获取沿途的交通标志数据吗? eg Can I get all info shown in the attached image?例如,我可以获得附加图像中显示的所有信息吗?

图片

To begin using the PDE layers, create a PlatformDataRequest object:要开始使用 PDE 层,请创建一个 PlatformDataRequest 对象:

Set<String> layers = new HashSet<String>(Arrays.asList("TRAFFIC_SIGN_FC1", "TRAFFIC_SIGN_FC2"));
Set<Long> linkIds = /*your link IDs*/
PlatformDataRequest request = PlatformDataRequest.createLinkIdsRequest(layers, linkIds);

Next, you need to supply a Listener object to get the results of the request.接下来,您需要提供一个 Listener 对象来获取请求的结果。

  request.execute(new PlatformDataRequest.Listener<PlatformDataResult>() {
  @Override
  public void onCompleted(PlatformDataResult data, PlatformDataRequest.Error error) {
    if (error != null) {
      Log.w(TAG, "PlatformDataRequest failed with error: " + error);
    } else {
      // process received data
    }
  }
});

Please find documentation here: developer.here.com/documentation/android-premium/dev_guide/topics/platform-data-extension.html请在此处找到文档:developer.here.com/documentation/android-premium/dev_guide/topics/platform-data-extension.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM