census_2018_electoral_mb_2020
2018 Census general and Māori electoral populations at meshblock level using 2020 boundaries.
From Stats NZ.
Source: Stats NZ ↗ ·Last updated: 2026-06-13 ·Updated static ·53,582 rows
install.packages("eolas", repos = c("https://phildonovan.r-universe.dev", "https://cloud.r-project.org"))
library(eolas)
eolas_key("your_key")
df <- eolas_get("census_2018_electoral_mb_2020", start = "2020-01-01")
# pip install eolas-data
from eolas_data import Client
df = Client("your_key").get("census_2018_electoral_mb_2020", start="2020-01-01")
curl "https://api.eolas.nz/v1/datasets/census_2018_electoral_mb_2020/data?start=2020-01-01" \
-H "X-API-Key: your_key"
No card needed. The trial covers this dataset through the API. Bulk Parquet/CSV downloads need Pro.
Centroids only — full geometry available via the API or CSV download.
| Column | Type | Description |
|---|---|---|
| meshblock_id_2020_v2 | string | Meshblock ID 2020 v2 |
| general_electoral_population | long | General electoral population |
| maori_electoral_population | long | Maori electoral population |
| general_electoral_district_code_2020 | string | General electoral district code 2020 |
| general_electoral_district_name_2020 | string | General electoral district name 2020 |
| general_electoral_district_name_ascii_2020 | string | General electoral district name ascii 2020 |
| maori_electoral_district_code_2020 | string | Maori electoral district code 2020 |
| maori_electoral_district_name_2020 | string | Maori electoral district name 2020 |
| maori_electoral_district_name_ascii_2020 | string | Maori electoral district name ascii 2020 |
| land_area_sq_km | double | Land area sq km |
| area_sq_km | double | Area sq km |
| shape_length | double | Geometry length/perimeter (source projection units) |
| geometry_wkt | string | Geometry as WKT (WGS84) — MULTIPOLYGON/POINT/LINESTRING |
install.packages("eolas", repos = c("https://phildonovan.r-universe.dev", "https://cloud.r-project.org"))
library(eolas)
eolas_key("your_key_here")
df <- eolas_get("census_2018_electoral_mb_2020")
head(df)
df <- eolas_get("census_2018_electoral_mb_2020", start = "2020-01-01", end = "2024-12-31")
head(df)
df <- eolas_get("census_2018_electoral_mb_2020")
write.csv(df, "census_2018_electoral_mb_2020.csv", row.names = FALSE)
geometry_wkt
— fetch via the API or download CSV to get the full data.| Meshblock Id 2020 V2 | General Electoral Population | Maori Electoral Population | General Electoral District Code 2020 | General Electoral District Name 2020 | General Electoral District Name Ascii 2020 | Maori Electoral District Code 2020 | Maori Electoral District Name 2020 | Maori Electoral District Name Ascii 2020 | Land Area Sq Km | Area Sq Km | Shape Length |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 4007975 | 105 | 18 | 002 | Banks Peninsula | Banks Peninsula | 6 | Te Tai Tonga | Te Tai Tonga | 0.0460 | 0.0460 | 1423.7786 |
| 4007976 | 93 | 12 | 009 | East Coast | East Coast | 2 | Ikaroa-Rāwhiti | Ikaroa-Rawhiti | 0.0889 | 0.0889 | 1431.8243 |
| 4008514 | 63 | -999 | 002 | Banks Peninsula | Banks Peninsula | 6 | Te Tai Tonga | Te Tai Tonga | 0.0509 | 0.0509 | 990.1201 |
| 4007966 | -999 | -999 | 009 | East Coast | East Coast | 7 | Waiariki | Waiariki | 0.2934 | 0.2934 | 2329.8662 |
| 4007968 | 78 | 78 | 009 | East Coast | East Coast | 7 | Waiariki | Waiariki | 0.0499 | 0.0499 | 891.5235 |
Showing 5 sample rows. Get an API key to access the full dataset.
No card needed. The trial covers this dataset through the API. Bulk Parquet/CSV downloads need Pro.
Start 14-day trial