Here api 我可以使用Here Android SDK和Here平台数据扩展来获取沿途的交通标志数据吗?

Here api 我可以使用Here Android SDK和Here平台数据扩展来获取沿途的交通标志数据吗?,here-api,Here Api,我可以使用Here Android SDK和Here平台数据扩展来获取沿途的交通标志数据吗?e、 g.我可以获得附件中显示的所有信息吗 要开始使用PDE层,请创建PlatformDataRequest对象: Set<String> layers = new HashSet<String>(Arrays.asList("TRAFFIC_SIGN_FC1", "TRAFFIC_SIGN_FC2")); Set<Long> linkIds = /*your link

我可以使用Here Android SDK和Here平台数据扩展来获取沿途的交通标志数据吗?e、 g.我可以获得附件中显示的所有信息吗


要开始使用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);
Set layers=newhashset(Arrays.asList(“TRAFFIC\u-SIGN\u-FC1”、“TRAFFIC\u-SIGN\u-FC2”);
设置LinkId=/*您的链接ID*/
PlatformDataRequest请求=PlatformDataRequest.CreateLinkId请求(层,LinkId);
接下来,您需要提供一个侦听器对象来获取请求的结果

  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
    }
  }
});
request.execute(新平台datarequest.Listener(){
@凌驾
未完成公共无效(PlatformDataResult数据,PlatformDataRequest.Error){
if(错误!=null){
Log.w(标记“PlatformDataRequest失败,错误为:+错误”);
}否则{
//处理接收到的数据
}
}
});

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

图像链接是:这可以实现的,一旦路由可用,您应该能够从路由中提取LinkId,然后进一步使用PDE交通标志层交通标志(文档:)