---
title: "geoJSONDidComplete(result, geoJSON)"
framework: mapkitjs
role: symbol
role_heading: Interface Method
path: mapkitjs/geojsondelegate/geojsondidcomplete
---

# geoJSONDidComplete(result, geoJSON)

Completes the GeoJSON import.

## Declaration

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

## Parameters

- `result`: The mapped item collection.
- `geoJSON`: The original parsed GeoJSON object.

## Discussion

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

## See Also

### Handling errors and completion

- [geoJSONDidError(error, geoJSON)](mapkitjs/geojsondelegate/geojsondiderror.md)
