[英]HERE LinkId from route not found in PDE (Platform Data Extension)
[英]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 獲取沿途的交通標志數據嗎? 例如,我可以獲得附加圖像中顯示的所有信息嗎?
要開始使用 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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.