<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:@E@MKErrorCode"
  },
  "title" : "MKError.Code"
}
-->

# MKError.Code

Error constants for the MapKit framework.

```
enum Code
```

## Topics

### Constants

[`MKErrorDecodingFailed`](/documentation/MapKit/MKError/Code/decodingFailed)

GeoJSON decoding failed.

[`MKErrorDirectionsNotFound`](/documentation/MapKit/MKError/Code/directionsNotFound)

The framework couldn’t find the specified directions.

[`MKErrorLoadingThrottled`](/documentation/MapKit/MKError/Code/loadingThrottled)

The data didn’t load because data throttling is in effect.

[`MKErrorPlacemarkNotFound`](/documentation/MapKit/MKError/Code/placemarkNotFound)

The specified placemark could not be found.

[`MKErrorServerFailure`](/documentation/MapKit/MKError/Code/serverFailure)

The map server was unable to return the desired information.

[`MKErrorUnknown`](/documentation/MapKit/MKError/Code/unknown)

An unknown error occurred.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)