> ## Documentation Index
> Fetch the complete documentation index at: https://resq-dependabot-github-actions-github-actions-478e18be3d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DistanceResult

# Interface: DistanceResult

Defined in: [distance.ts:116](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/dsa/src/distance.ts#L116)

Result of a safe distance calculation.

## Properties

### distance

> **distance**: `number`

Defined in: [distance.ts:118](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/dsa/src/distance.ts#L118)

Calculated distance (NaN if invalid)

***

### error?

> `optional` **error?**: `string`

Defined in: [distance.ts:124](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/dsa/src/distance.ts#L124)

Error message if calculation failed

***

### formula

> **formula**: [`DistanceFormula`](../type-aliases/DistanceFormula)

Defined in: [distance.ts:120](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/dsa/src/distance.ts#L120)

Formula used for calculation

***

### valid

> **valid**: `boolean`

Defined in: [distance.ts:122](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/dsa/src/distance.ts#L122)

Whether the calculation succeeded
