get_boundary_geojson_simplified
Fetch simplified GeoJSON for a boundary by its ONS census code.
Safe to embed directly in generated HTML map files. At the default tolerance (0.0001°) a constituency polygon shrinks from ~4,000 vertices to ~200–400 with no visible difference at normal map zoom levels.
Prefer this over get_boundary_geojson_by_code() when writing Leaflet map pages — the full geometry is large enough to exhaust your context window before you can finish writing the HTML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ONS census / GSS / LAU code, e.g. "E14001592" for Woking. Case-insensitive. | |
| tolerance | No | Simplification tolerance in degrees (WGS-84). Default 0.0001. Increase to 0.001 for county-scale boundaries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |