> For the complete documentation index, see [llms.txt](https://swonh.gitbook.io/sdmp-user-manual-eng/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://swonh.gitbook.io/sdmp-user-manual-eng/routing-module/user-controls/customercontrol.md).

# CustomerControl

Controls for functions related to customer

### GetVisitableCustomers

```csharp
public override Dictionary<int, VehicleStateInfo> GetVisitableCustomers(Dictionary<int, VehicleStateInfo> availableCustomers)
```

#### Definition

Set which customers can be visited from the unvisited customers.

#### Parameters

<table><thead><tr><th width="334">Type</th><th>Description</th></tr></thead><tbody><tr><td>Dictionary&#x3C;Int, VehicleStateInfo></td><td>An object that holds information about each vehicle.</td></tr></tbody></table>

#### Return

<table><thead><tr><th width="294">Type</th><th width="242">Description</th><th>Default</th></tr></thead><tbody><tr><td>Dictionary&#x3C;Int, VehicleStateInfo></td><td>An object that holds information about each vehicle (including information about which customers can visit).</td><td><a href="#default-logic">Default Logic</a></td></tr></tbody></table>

#### Example (Default Logic)

```csharp
public override Dictionary<int, VehicleStateInfo> GetVisitableCustomers(Dictionary<int, VehicleStateInfo> vehicleInfos) 
{
    return vehicleInfos;
}
```
