<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/GeoJSONDelegate/geoJSONDidComplete",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Method",
  "symbol" : {
    "kind" : "Interface Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structm/mapkit.GeoJSONDelegate/geoJSONDidComplete"
  },
  "title" : "geoJSONDidComplete(result, geoJSON)"
}
-->

# geoJSONDidComplete(result, geoJSON)

Completes the GeoJSON import.

```
geoJSONDidComplete?<D extends GeoJSONTypes.GeoJSON>(
    result: ItemCollection<D>,
    geoJSON: D,
): void;
```

## Parameters

`result`

The mapped item collection.

`geoJSON`

The original parsed GeoJSON object.

## Discussion

After MapKit JS loads the GeoJSON data and converts it to MapKit objects, the framework calls [`geoJSONDidComplete(result, geoJSON)`](/documentation/MapKitJS/GeoJSONDelegate/geoJSONDidComplete) with the resulting [`ItemCollection`](/documentation/MapKitJS/ItemCollection), which reflects any provided customizations. This is the same value that returns directly from [`importGeoJSON(data, callback)`](/documentation/MapKitJS/mapkit/importGeoJSON) in the synchronous case.

---

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)