Assign Customers By Distance (Business Analyst Tools)
Summary
Assigns customers to the closest store based on a selected distance type.
Usage
The ID of the closest store is assigned to each customer. Store assignments are influenced by the selected value for Distance Type.
An Origin-Destination matrix calculates the least-cost paths between customers and stores using the Business Analyst network dataset and routing service.
When using a network distance type, you can adjust the Search Tolerance parameter value to define the maximum distance the input customer features can be from a road. Customer points beyond this distance will not receive a store assignment.
If a store cannot be assigned to a customer point, the new
Store IDvalue will be null and theDistancevalue will contain a -1.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Customer Features |
The input point feature layer representing customers. |
Feature Layer |
|
Input Store Features |
The input point feature layer representing store or facilities. |
Feature Layer |
|
Store ID Field |
A unique ID field for Input Store Features. |
Field |
|
Output Feature Class |
A point layer containing customers with assigned store or facility and distance. |
Feature Class |
|
Field Name (Optional) |
A new field that contains the assigned store or facility ID. |
String |
|
Distance Type (Optional) |
The method of travel used to calculate the distance between customers and stores. |
String |
|
Distance Units (Optional) |
The units that will be used to measure the selected distance type. |
String |
|
Travel Direction (Optional) |
Specifies the direction of travel that will be used between stores or facilities and customers.
|
String |
|
Time of Day (Optional) |
The time and date that will be used when calculating distance. |
Date |
|
Time Zone (Optional) |
Specifies the time zone that will be used for the Time of Day parameter.
|
String |
|
Search Tolerance (Optional) |
The maximum distance that input points can be from the network. Points located beyond the search tolerance will be excluded from processing. The parameter requires a distance value and units for the tolerance. The default value is 5000 meters. |
Linear Unit |
Environments
Current Workspace, Data Source, Network Source
Licensing information
- Basic: Requires Business Analyst and Network Analyst
- Standard: Requires Business Analyst and Network Analyst
- Advanced: Requires Business Analyst and Network Analyst