# nearest_fire_perimeter_distance_m

> Geodesic distance in metres to the boundary of the nearest CAL FIRE FRAP historical fire perimeter (all years, 23,334 perimeters); 0 inside one.

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

|  |  |
| --- | --- |
| Name | `nearest_fire_perimeter_distance_m` |
| Layer | hazards |
| Type, unit | float, meters |
| Sources (in order) | `CALFIRE_FRAP` |
| Cache | 30 days (`ttl_seconds` 2592000) |

## What it is

Geodesic distance in metres to the boundary of the nearest CAL FIRE FRAP historical fire perimeter (all years, 23,334 perimeters); 0 inside one. Searched to 8 km. California only.

## Nulls

status "absent": no recorded perimeter within 8 km (or outside California); not proof of no fire nearby. "failed": CAL FIRE did not answer.

## 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_fire_perimeter_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

- [Keep the map class, burn probability and historical record separate](https://docs.invariant-ai.com/check-wildfire-hazard-by-address#keep-the-map-class-burn-probability-and-historical-record-separate)
- [Check flood and weather exposure for a building](https://docs.invariant-ai.com/choose-fields-for-site-research#check-flood-and-weather-exposure-for-a-building)
