在iOS上计算长途路线时,HEREMaps错误5 [英] HEREMaps error 5 when calculating long routes on iOS

查看:51
本文介绍了在iOS上计算长途路线时,HEREMaps错误5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:仅当在Xcode中使用模拟器时,才会发生这种情况.因此,可以认为这个问题已经解决.我不会删除它,但以防其他人遇到相同的问题.

UPDATE: This occurs only when using the simulator in Xcode. For this reason this question can be considered resolved. I'm not going to delete it though in case someone else experiences the same issue.

当我尝试计算长距离的路线时(例如,从温哥华BC到纽约州的纽约),我得到一个错误,错误5.

When I try to calculate routes for long distances (for example from Vancouver BC to New York NY I get an error back, error 5.

错误5在API中定义为:

Error 5 is defined in the API as:

NMARoutingErrorInvalidOperation
There was an error due to another request already being processed.

然而,这与其他计算没有问题地进行了相同的调用,这仅在长距离时发生.

This is however the same call that is made for other calculations without issue, this only happens for long distances.

您对造成这种情况的原因有任何见解?我曾尝试同时使用 fastest balanced 作为路由类型.我正在使用

Do you have any insight into what could be causing this? I have tried using both fastest and balanced for the routing type. I am using

router.calculateRoute(withStops: [startWaypoint, destinationWaypoint], routingMode: routingMode) 

往南走,我可以计算出一条从温哥华到西雅图(195公里)而不是阿伯丁(250公里)的路线.往东走,我可以算到斯卡吉特省立公园(150公里),而不能算到曼宁公园(190公里)

Going South I can calculate a route from Vancouver to Seattle (195Km) but not Aberdeen (250Km). Going East I can calculate to Skagit Provincial Park (150Km) but not to Manning Park (190 Km)

(iOS高级许可证)

推荐答案

仅当在Xcode中使用模拟器时,才会发生这种情况.因此,可以认为这个问题已经解决.我不会删除它,但以防其他人遇到相同的问题.

This occurs only when using the simulator in Xcode. For this reason this question can be considered resolved. I'm not going to delete it though in case someone else experiences the same issue.

这篇关于在iOS上计算长途路线时,HEREMaps错误5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆