Commit 923d07b6 authored by Eliot Blennerhassett's avatar Eliot Blennerhassett

Add "places" table derived from LINZ data

parent 3875ecc0
......@@ -27,6 +27,18 @@ FROM linz.nz_street_address;
DETACH linz;
drop table places;
create table places as
count(*) as num_addresses
from linz_addr
where addr_type = 'Road'
group by town_city, suburb_locality
order by town_city, suburb_locality
ATTACH DATABASE "nz_address-osm_raw.sqlite" AS "osm";
DELETE FROM osm_addr;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment