---
title: "Auto georeferencing API"
description: "Administrative API for auto georeference of documents."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Auto georeferencing API

MapTiler’s Auto georeferencing API allows you to automatic georeference for raster data via API. You can upload a raster data and the API provides a suggestion for automatic georeferencing, either from GPS EXIF ​​metadata (from drones) or by comparing images against a base map (raster or vector) at the selected location.

## Auto georeferencing API reference

Configure your environment settings below to update code samples:

-   **Client Libraries** – select your preferred programming language of the code examples.

  Scalar API Reference

-   [
    
    Introduction
    
    ](#description/introduction)
-   [
    
    auto\_georeferencing
    
    ](#tag/auto-georeferencing)
    
    Close Group - auto\_georeferencing
    
    -   [
        
        Start auto georeference of document
        
        HTTP Method:  POST](#tag/auto-georeferencing/POST/datasets/{document_id}/auto_georeference)
    -   [
        
        Get auto georeference task details
        
        HTTP Method:  GET](#tag/auto-georeferencing/GET/datasets/auto_georeference/{task_id})
    -   [
        
        Cancel auto georeference task
        
        HTTP Method:  POST](#tag/auto-georeferencing/POST/datasets/auto_georeference/{task_id}/cancel)

[Powered by Scalar](https://www.scalar.com)

v1.0

OpenAPI 3.0.2

# MapTiler Service API

[Support](mailto:support@maptiler.com)

[](https://docs.maptiler.com/support/requests/)

[Terms of Service](https://www.maptiler.com/terms/)

Server

Server:https://service.maptiler.com/v1

MapTiler Service API

Client Libraries

Shell

Ruby

Node.js

PHP

Python

MoreSelect from all clients

Shell Curl

## auto\_georeferencing

​Copy link

auto\_georeferencing Operations

-   post/datasets/{document\_id}/auto\_georeference
-   get/datasets/auto\_georeference/{task\_id}
-   post/datasets/auto\_georeference/{task\_id}/cancel

### Start auto georeference of document

​Copy link

Auth Required

Path Parameters

-   document\_idCopy link to document\_id
    
    Type: string Format: uuid
    
    required
    

Body·AutoGeoreferenceRequest

application/json

-   locationCopy link to location
    
    Type: object · AutoGeoreferenceLocation
    
    Approximate location (latitude and longitude) of the input data. Optional if the input file already contains location: GPS tags in image EXIF data, georeference in raster files, or the MapTiler georeference header in PLY files.
    
    Show Child Attributesfor location
    

Responses

-   200
    
    Auto georeference task details
    
    application/json
    

Request Example for post/datasets/_{document\_id}_/auto\_georeference

Shell Curl

```curl
curl https://service.maptiler.com/v1/datasets/123e4567-e89b-12d3-a456-426614174000/auto_georeference \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Basic username:password' \
  --data '{
  "location": {
    "lat": 51.5074,
    "lon": -0.1278
  }
}'
```

cURLCopy

cURLCopy

Status: 200

Show Schema 

```json
{
  "id": "6c4f9984-4d01-4923-a992-9e3b307d53ae",
  "input_document_id": "c05d54ab-af65-4fa5-ba76-76009aac6535",
  "output_document_id": null,
  "state": "processing",
  "errors": null,
  "progress": 12.5
}
```

JSONCopy

JSONCopy

processing

Auto georeference task details

### Get auto georeference task details

​Copy link

Auth Required

Path Parameters

-   task\_idCopy link to task\_id
    
    Type: string Format: uuid
    
    required
    

Responses

-   200
    
    Auto georeference task details
    
    application/json
    

Request Example for get/datasets/auto\_georeference/_{task\_id}_

Shell Curl

```curl
curl https://service.maptiler.com/v1/datasets/auto_georeference/123e4567-e89b-12d3-a456-426614174000 \
  --header 'Authorization: Basic username:password'
```

cURLCopy

cURLCopy

Status: 200

Show Schema 

```json
{
  "id": "6c4f9984-4d01-4923-a992-9e3b307d53ae",
  "input_document_id": "c05d54ab-af65-4fa5-ba76-76009aac6535",
  "output_document_id": null,
  "state": "processing",
  "errors": null,
  "progress": 12.5
}
```

JSONCopy

JSONCopy

processing

Auto georeference task details

### Cancel auto georeference task

​Copy link

Auth Required

Path Parameters

-   task\_idCopy link to task\_id
    
    Type: string Format: uuid
    
    required
    

Responses

-   200
    
    Auto georeference task details
    
    application/json
    

Request Example for post/datasets/auto\_georeference/_{task\_id}_/cancel

Shell Curl

```curl
curl https://service.maptiler.com/v1/datasets/auto_georeference/123e4567-e89b-12d3-a456-426614174000/cancel \
  --request POST \
  --header 'Authorization: Basic username:password'
```

cURLCopy

cURLCopy

Status: 200

Show Schema 

```json
{
  "id": "6c4f9984-4d01-4923-a992-9e3b307d53ae",
  "input_document_id": "c05d54ab-af65-4fa5-ba76-76009aac6535",
  "output_document_id": null,
  "state": "processing",
  "errors": null,
  "progress": 12.5
}
```

JSONCopy

JSONCopy

processing

Auto georeference task details
