# nearest_urban_area_distance_m

> Geodesic distance in metres to the nearest 2020 Census Urban Area boundary; 0 when the point is inside one (exact containment check).

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

|  |  |
| --- | --- |
| Name | `nearest_urban_area_distance_m` |
| Layer | utilities |
| Type, unit | float, meters |
| Sources (in order) | `CENSUS_TIGER_URBAN` |
| Cache | 90 days (`ttl_seconds` 7776000) |

## What it is

Geodesic distance in metres to the nearest 2020 Census Urban Area boundary; 0 when the point is inside one (exact containment check). Outside, boundaries are server-generalized, so distances carry about +/-55 m. A proxy for nearness to population and network aggregation, not fiber access.

## Nulls

status "absent": no urban area within 100 km. "failed": the Census service did not answer or returned an incomplete 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_urban_area_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).
