---
schema_version: "1"
id: 0dee47dc02f26780e24d8b1ef4065aa8dcb10a2b30392474655bc062e2859765
title: ConnectApi.DistanceCalculationOutputRepresentation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_distance_calculation_output.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_distance_calculation_output.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 94a9825c4fd096a7c0e1febefc8871511d6c2f4f30b0ddfdf1f93fef728da3e9
description: Shipping distance data for a set of inventory locations.
---
# ConnectApi.DistanceCalculationOutputRepresentation

Shipping distance data for a set of inventory locations.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| averageDistance | Double | The average distance from the locations to the order recipient. | 51.0 |
| locations | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​LocationOutput​Representation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_location_output.htm "An inventory location’s distance to an order recipient.")\> | The list of locations and their distances to the order recipient. | 51.0 |
| rank | Integer | This result’s rank among all results by average distance to the order recipient. | 51.0 |