NZ Council Rating Data
Every New Zealand territorial authority (TA) keeps a District Valuation Roll: capital value (CV), land value (LV), improvements value (IV), legal description, land area and annual rates for each rating unit. Pillow collects this data from councils that publish it, stores it in Mill and shows it on property pages, in the same way homes.co.nz does.
Architecture
Section titled “Architecture”councils.yaml registry (67 TAs) │ ▼connectors -mode council-sync ──► Kafka: council-ratings ──► Mill consumerconnectors -mode council-lookup ──► (or POST /connectors/council-ratings/batch) │ │ ▼ ▼ arcgis / htmllookup / opendata / licensed adapters council_ratings + history + rates lines, matched to properties (valuation → address → 15 m PostGIS) │ ▼ GET /api/v1/properties/{id} → council_rating GET /api/v1/properties/{id}/valuation-history GET /api/v1/councils (coverage)Registry
Section titled “Registry”connectors/councils/registry/councils.yaml lists all 67 TAs with their Stats NZ TA code, region, website, revaluation cycle, access status and data sources. A unit test checks that the registry has exactly 67 unique councils and that every enabled source is complete.
| Access status | Meaning |
|---|---|
allowed |
Rating data is published openly. Sources are configured and synced weekly. |
request_needed |
No public machine-readable rating data. Needs a data-sharing request or licence. |
blocked |
The council has refused access or its terms prohibit automated collection. |
Adapters
Section titled “Adapters”| Adapter | Used for | Sync | Lookup |
|---|---|---|---|
arcgis |
Council open-data FeatureServer/MapServer layers (Gisborne, Tasman, Dunedin, …) | Pages with resultOffset, ordered by object ID |
Address prefix and point-in-polygon |
htmllookup |
Vendor property search sites. The magiq preset covers MagiQ “Rates Information” sites |
Walks the valuation-number autocomplete, then fetches each detail page | Valuation number or street search |
opendata |
CSV or GeoJSON downloads | Whole file | — |
licensed |
Placeholder for a QV, CoreLogic/PropertyIQ or direct council feed | — | — |
Field mappings live in the registry (fields: maps canonical names such as capital_value to source attributes). All records pass through one normaliser that cleans valuation numbers, parses money, area and dates, derives IV = CV − LV, and drops coordinates outside New Zealand.
MagiQ detail pages also provide the current year’s rates breakdown and up to ten years of rating history (LV, CV, annual rates). This history feeds the valuation chart.
Current coverage
Section titled “Current coverage”Sixteen councils are enabled:
- ArcGIS open data: Gisborne, Tasman, Rangitīkei, Horowhenua, Dunedin, Clutha
- MagiQ rates sites: Kaipara, Ōtorohanga, Waitomo, Wairoa, Central Hawke’s Bay, South Wairarapa, Nelson, Selwyn, Mackenzie, Central Otago
The other 51 councils, including Auckland, Wellington, Christchurch and Hamilton, are marked request_needed. Several of them (Taupō, Ōpōtiki, Manawatū, Upper Hutt, Waimakariri, Christchurch) publish property layers without valuation values. The coverage page at /councils shows the live status for every council.
To enable another council, add a source to its registry entry, set access_status: allowed and run a dry-run sync:
cd connectorsgo run . -mode council-sync -council <code> -council-max-records 20 -dry-run -output /tmp/<code>.jsonlRun modes and deployment
Section titled “Run modes and deployment”| Mode | Kubernetes | Behaviour |
|---|---|---|
council-sync |
k8s/connectors/council-sync-cronjob.yaml (weekly) |
Syncs every enabled council (8 in parallel, 1 request/second per council) to council-ratings |
council-lookup |
k8s/connectors/council-lookup-deployment.yaml |
Consumes property-enrichment (group council-lookup), detects the TA from Mill coordinates using the Stats NZ TA 2025 boundaries, and looks up that one property |
Flags: -council <code[,code]|all>, -council-concurrency, -council-max-records, -council-registry <path>, plus the shared -kafka-brokers, -mill-api, -dry-run and -output.
Mill storage and matching
Section titled “Mill storage and matching”Migration 12 creates:
councils: registry metadata and coverage countscouncil_ratings: one row per council and valuation number, with an optionalproperty_id, PostGIS point and source URLcouncil_rating_history: a row whenever a valuation or rating year changes, plus history imported from the sourcecouncil_rates_lines: the current rates breakdown
The matcher links a rating to a property using, from strongest to weakest:
- Lookup: the record came from
council-lookupfor a specific property - Existing link: the rating is already linked, so only its values are refreshed
- Address: unit, number and street match a listing within 2 km of the rating point (or in the same locality when the council publishes no point). Street suffixes, macrons and unit prefixes are normalised first.
- Spatial: the nearest listing within 15 m, but only for ratings without a unit number, because unit titles share a parcel point
A weaker method never replaces a stronger link. When a council publishes a new CV, the previous CV, LV, IV and valuation date move into the previous_* columns so the change can be shown.
The denormalised properties.council_capital_value powers the CV search filter, listing cards and map popups.
| Endpoint | Purpose |
|---|---|
POST /connectors/council-ratings/batch |
Council metadata and/or up to 2,000 rating records. Needs a service token with the connector role. |
GET /api/v1/properties/{id} |
Includes council_rating when the property is matched |
GET /api/v1/properties/{id}/valuation-history |
Valuation history, newest first (404 when the property has no rating) |
GET /api/v1/councils |
All councils with access status, record and matched counts and last sync time |
GET /api/v1/properties?cv_min=&cv_max= |
Filter listings by council CV |
council-sync publishes council metadata (type=council Kafka header, or a councils-only batch over HTTP) before syncing records, so the coverage page lists all 67 councils even before their first sync.
Display
Section titled “Display”Property pages show, for New Zealand listings:
- A Council valuation card: CV, an LV/IV split bar, change since the previous valuation, the valuation date and a provenance line (council, update date, match method) with a link to the council’s property search
- Council rates: annual, monthly and weekly rates with the breakdown (long breakdowns collapse)
- Council property record: land and floor area, land use, zoning, category, titles, legal description and valuation reference
- A valuation history chart when the council provides two or more periods
Listing cards and map popups show a CV chip when it is available, and the search page has a Council valuation (CV) filter. When a property has no council rating, the valuation card says so and links to /councils, which lists every council by region with its access status, record count, listings matched and last sync.
Sections only render the fields a council publishes. For example, Dunedin publishes CV and rates but not LV/IV, and Tasman publishes CV, LV and IV but not rates.
Background: commercial and government sources
Section titled “Background: commercial and government sources”- PropertyIQ / QV license the full District Valuation Roll from councils. homes.co.nz and other national portals use this route. The
licensedadapter is the integration point if Pillow licenses a feed. - LINZ Data Service provides titles and parcels but no valuations. The
linzenricher uses it. - NZ Property Spine holds the national DVR but is restricted to government agencies.
- The previous
councilratesenricher called a Koordinates endpoint that does not exist and has been removed.