> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Auto Merge

> Keep visits at the same coordinate on one vehicle, back to back.

With **Auto Merge** on, visits with exactly the same coordinate are given to the **same vehicle, one right after another**. Without it, the optimization may split the orders of one customer over different vehicles.

> [!NOTE]
>
> Required permission:
>
> * View configuration
> * Edit configuration

## Turning it on

1. Open **Planning › Routing › Configuration** and go to **Optimization**.
2. Tick **Auto Merge** (item 4 in the picture).

The change is saved as soon as you make it.

![Optimization options](https://mintcdn.com/mileapp-e5b5ea5a/Z6-EpYCo9EeJaKM6/images/v4/planning/optimization.png?fit=max\&auto=format\&n=Z6-EpYCo9EeJaKM6\&q=85\&s=0adcb7fe9480dd7007631c8a10ba4cee)

From then on, visits with identical coordinates are no longer given to different vehicles.

**Example**: the visits "Toko Sinar Jaya" and "Toko Sinar Jaya – Gudang" both have the coordinate `-6.153812,106.817402`. With Auto Merge they are served by the same vehicle, one after the other.

> [!NOTE]
>
> Auto Merge does not combine the visits into one task. Each visit stays a separate visit and task; they are only kept together on one vehicle.

## With Auto Split

When [Auto Split](https://docs.mile.app/pages/planning/routing/configuration/auto-split.md) is also on, visits with identical coordinates are not split across different vehicles, so merged visits stay together.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.