# Géocodage de lieux en France à partir d’un fichier texte

**Use case:** 

Convertir une liste d’adresses de lieux en France fournies dans un fichier texte en coordonnées GPS en utilisant la base BD TOPO. Chaque ligne du fichier correspond à une adresse de lieu. Le coût est de 0.03$ pour 1000 adresses.

## Input

```json
{
  "addresses": [
    "16 Rue de Savoie, 93330 Neuilly-sur-Marne"
  ],
  "address_file": "https://api.apify.com/v2/key-value-stores/6lKfoEwdYE9llQFB2/records/adr.txt",
  "bulk_mode": true,
  "index": "poi",
  "max_candidates": 1,
  "create_map": false,
  "max_map_markers": 250,
  "proxy_settings": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "input_id": {
    "label": "Id (entrée)",
    "format": "number"
  },
  "input_adr": {
    "label": "Adresse (entrée)",
    "format": "text"
  },
  "longitude": {
    "label": "Longitude",
    "format": "number"
  },
  "latitude": {
    "label": "Latitude",
    "format": "number"
  },
  "label": {
    "label": "Adresse ou Lieu",
    "format": "text"
  },
  "type": {
    "label": "Type d'adresse ou Lieu",
    "format": "text"
  },
  "street": {
    "label": "Nom de Rue",
    "format": "text"
  },
  "postcode": {
    "label": "Code postal",
    "format": "text"
  },
  "city": {
    "label": "Nom de la Commune",
    "format": "text"
  },
  "citycode": {
    "label": "Code INSEE de la Commune",
    "format": "text"
  },
  "context": {
    "label": "Département et Région ou Territoire",
    "format": "text"
  },
  "score": {
    "label": "Score de correspondance",
    "format": "text"
  },
  "source": {
    "label": "Index",
    "format": "text"
  },
  "status": {
    "label": "Statut du résultat",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Géocodage en masse d'adresses en FRANCE (BAN et BD TOPO) Actor is ready to run with the inputs already set for "Géocodage de lieux en France à partir d’un fichier texte". [Sign up or log in](https://console.apify.com/create-task-from-example/wOML3eYIpO5QlbH0k) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Géocodage de lieux en France à partir d’un fichier texte" task

The Géocodage en masse d'adresses en FRANCE (BAN et BD TOPO) Actor will start running based on the input automatically. You can also change all the input fields, like addresses to geocode, file with addresses to geocode, and more, to match your specific use case.

### 3. Receive the "Géocodage de lieux en France à partir d’un fichier texte" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as id (entrée), adresse (entrée), longitude, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Géocodage de lieux en France à partir d’un fichier texte" task via API](https://apify.com/nlp_data_lni/fr-ign-geocodage.md).

## About this Actor

This example demonstrates how to use [Géocodage en masse d'adresses en FRANCE (BAN et BD TOPO)](https://apify.com/nlp_data_lni/fr-ign-geocodage.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/nlp_data_lni/fr-ign-geocodage.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/nlp_data_lni/fr-ign-geocodage.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
