---
title: GeoJSONImporterCallback
framework: mapkitjs
role: symbol
role_heading: Type
path: mapkitjs/geojsonimportercallback
---

# GeoJSONImporterCallback

A callback function that MapKit JS invokes when importing a GeoJSON object.

## Declaration

```data
type GeoJSONImporterCallback = (
    ...args:
        | [GeoJSONImportError, GeoJSONTypes.GeoJSON | undefined]
        | [null, ItemCollection]
) => void;
```

## Discussion

Discussion MapKit JS invokes this callback with two arguments, error on failure and result on success, as follows:

## See Also

### Geographical features

- [importGeoJSON(data, callback)](mapkitjs/mapkit/importgeojson.md)
- [GeoJSONDelegate](mapkitjs/geojsondelegate.md)
- [Item](mapkitjs/item.md)
- [ItemCollection](mapkitjs/itemcollection.md)
- [GeoJSONImportError](mapkitjs/geojsonimporterror.md)
- [Displaying Indoor Maps with MapKit JS](mapkitjs/displaying-indoor-maps-with-mapkit-js.md)
