简体   繁体   中英

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? eg Can I get all info shown in the attached image?

图片

To begin using the PDE layers, create a PlatformDataRequest object:

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.

  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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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