# Calculate Site Distances

> Perform Calculate Site Distances through GenHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_calculate_site_distances](https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_calculate_site_distances)

Integration: [GenHealth](https://genhealth.ai/docs/workflows/integrations/gen-health.md)

- Handler: `genhealth_calculate_site_distances`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "GenHealth",
  "params": {},
  "handler": "genhealth_calculate_site_distances"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `network_key` — Network Key (text, required)
  Required text value.
- `zip_code` — Zip Code (text, required)
  Required text value.

## Outputs

- `success` — Success
- `candidates` — Candidates
- `distance_status` — Distance Status
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `read`
- Confirmation recommended: no
- Retry safe: yes
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "network_key",
    "zip_code"
  ],
  "properties": {
    "zip_code": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "network_key": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "candidates": {},
    "distance_status": {}
  },
  "additionalProperties": true
}
```
