# Distance reference for a company

`GET /api/v1/visits/firm-geo`

A company's reference point for the live distance on the visit form: `geo` = the company location (`base: firm`) or the approximate point found from its address (`base: addr`, precision `prec` · `prec_l`, tolerance `tol` (m), `label`, `src`: `google` · `osm` — a Google point may be shown only on a Google map, `label` carries the “Google Maps” attribution) or `null`. Also `addr_state` (`ok` · `none` not found · `noaddr` no address · `pending` · `off`), `radius`, `set_acc`, `low_acc`. The first lookup of an address can take a few seconds; the result is cached. `found: false` when the company isn't found. Rule: at the company location, distance − min(accuracy, 300) ≤ radius → at the company; at the address, distance − min(accuracy, 300) − tolerance > radius → away.

## Query parameters

| Field | Type | Description |
|---|---|---|
| `customer_id` | integer | Company id. |
| `name` | string | Company name (when no id). |
