我正在创建一个访问HERE平台数据扩展Api (= PDE)的Android应用程序。因此,我首先加载一个以我当前位置为中心的地图。到目前为止,它工作得很好。然后我尝试从PDE加载"SAFETY_ALERTS“层的数据,但我得到了一个400错误的消息"tilexy列出了992个瓦片,但限制是64个瓦片”。
我不确定这个"tilexy“是从哪里来的。我已经在网上找到了尽可能多的关于PDE的文档,但我找不到答案。
Set<String> layers = new HashSet<>(Arrays.asList("SAFETY_ALERTS"));
GeoBoundingBox bbox = map.getBoundingBox();
final PlatformDataRequest request = PlatformDataRequest.createBoundingBoxRequest(layers, bbox);
request.execute(new PlatformDataRequest.Listener<PlatformDataResult>() {
@Override
public void onCompleted(PlatformDataResult platformDataResult, PlatformDataRequest.Error error) {
if (error == null) {
//do something
} else {
//show error --> Here is where I get
}我希望得到一个PlatformDataItemCollection,它是PlatformDataItems的列表(他们实现了映射)。相反,我得到了400-Error。
有没有人知道这个错误是从哪里来的,可以帮我改正错误?
发布于 2019-06-10 13:26:38
根据错误消息,建议检查API调用,因为在rest调用中似乎已在tilexy参数中传递了超过64个坐标。tilexy是一个字符串,它以逗号分隔的tilex、tiley对的顺序传递给所请求的tiles。tilex和tiley的值在“tilex”资源中描述。
有关更多参考信息,请参阅以下文档
developer.here.com/documentation/platform-data/topics/example-tiles.html
编码快乐!
https://stackoverflow.com/questions/56515787
复制相似问题