使用 MapKit API 时 MKErrorDomain code=3 是什么意思?

What does MKErrorDomain code=3 mean when using the MapKit API?

我在使用我不理解的 MKDirections.calculate() 方法时收到一条错误消息。

我查看了 Apple 的文档,但没有提及。我也用 Google 搜索过,但仍然没有答案。

看起来像 MKErrorLoadingThrottled code
MKErrorCode 枚举

The data was not loaded because data throttling is in effect.
This error can occur if an app makes frequent requests for data over a short period of time.

根据文档

MKErrorUnknown = 1,
MKErrorServerFailure = 2,
MKErrorLoadingThrottled = 3,
MKErrorPlacemarkNotFound = 4,
MKErrorDirectionsNotFound = 5 

MKErrorLoadingThrottled表示您在短时间内请求过多

可能是您在循环中调用 MKDirections.calculate(),或者您有一个基于计时器调用 MKDirections.calculate() 的函数。