我可以使用Here Android SDK和Here Platform Data Extension来获取路线上的交通标志数据吗?例如我可以在附图中看到所有信息吗?
答案 0 :(得分:0)
要开始使用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);
接下来,您需要提供一个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
}
}
});
请在此处找到文档:developer.here.com/documentation/android-premium/dev_guide/topics/platform-data-extension.html