div and a script tag. The widget does the rest: it finds the nearest open fields, shows their scores, sizes itself to fit and credits the data it uses.
Install it
The snippet, a plain-iframe version for strict sites, and how to get a key.
Options
Where to look (postcode, or latitude and longitude) and light or dark.
What readers see
Every state, from a full answer to “isn’t set up for this site”.
Security and privacy
Who may show it, what we count, and what we never collect.
What it shows
For a postcode or a point, the widget looks at the 5 nearest open fields within 500 m and shows:- The nearest field with a score: its band (Low, Moderate, High or Very High), its score out of 100, how far away it is, the outlook over the next 5 and 15 years, and up to three main reasons in a few words.
- Fields nearby: each of the five, numbered, with its distance, its size in hectares, and its band and score, or “Being checked”.
- A small map of the same fields, numbered as in the list. It loads only when the reader scrolls near it.
- A link to the full report on checkthatfield.com, which opens in a new tab.
- The data credits we are required to show, and “Powered by Check That Field”.
Fields we haven’t scored yet are queued for scoring when the widget asks about them, and show as “Being checked” until they are done, usually in a few minutes. See Pending scores.
How it works
The widget is an iframe served fromwww.checkthatfield.com. Its styles and scripts are kept apart from your page, so neither can break the other. The optional loader script, /embed/v1.js, has no dependencies. It makes the iframe as the widget nears the screen, and resizes it to fit its content.
Each widget uses a publishable key (ctf_pk_live_…). The key is meant to sit in your page’s HTML, and it works only on the sites it was issued for. See Security and privacy.