# nearest_long_haul_rail_corridor_distance_m

> Geodesic distance to the nearest BTS NTAD (FRA NARN) mainline rail line: a long-haul right-of-way corridor, searched to 200 km.

Source: https://docs.invariant-ai.com/fields/nearest_long_haul_rail_corridor_distance_m

|  |  |
| --- | --- |
| Name | `nearest_long_haul_rail_corridor_distance_m` |
| Layer | utilities |
| Type, unit | float, meters |
| Sources (in order) | `BTS_NTAD_MAINLINE_RAIL` |
| Cache | 30 days (`ttl_seconds` 2592000) |

## What it is

Geodesic distance to the nearest BTS NTAD (FRA NARN) mainline rail line: a long-haul right-of-way corridor, searched to 200 km.

## Nulls

status "absent": no mainline rail line within 200 km. "failed": BTS did not answer or truncated the result.

## Example

```bash
curl -s https://api.invariant-ai.com/v1/fetch \
  -H "X-API-Key: $INVARIANT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat": 39.0438, "lng": -77.4874, "fields": ["nearest_long_haul_rail_corridor_distance_m"]}'
```

Field object keys are described in [Responses](https://docs.invariant-ai.com/responses). Live definition: [`GET /v1/meta/fields`](https://docs.invariant-ai.com/api/meta-fields).

## Workflows using this field

- [Test freight access and travel times](https://docs.invariant-ai.com/choose-fields-for-site-research#test-freight-access-and-travel-times)
- [Choose the warehouse and the gate](https://docs.invariant-ai.com/screen-warehouse-rail-and-truck-access#choose-the-warehouse-and-the-gate)
