From 8e2e852b898b3ebba6e3c243b08ba02f7f44d4fc Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 2 Jan 2019 14:50:55 +0100 Subject: [PATCH] add postcodes and interpolations to osm2pgsql style --- settings/import-address.style | 4 ++-- settings/import-admin.style | 13 +++++++++++++ settings/import-full.style | 6 ++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/settings/import-address.style b/settings/import-address.style index b79b5bc9..1b5eda61 100644 --- a/settings/import-address.style +++ b/settings/import-address.style @@ -60,9 +60,9 @@ } }, { - "keys" : ["addr:*", "is_in:*", "tiger:county", "is_in"], + "keys" : ["addr:interpolation"], "values" : { - "" : "address" + "" : "interpolation,address" } }, { diff --git a/settings/import-admin.style b/settings/import-admin.style index df7b31d2..02a54f12 100644 --- a/settings/import-admin.style +++ b/settings/import-admin.style @@ -53,5 +53,18 @@ "values" : { "" : "address" } +}, +{ + "keys" : ["postal_code", "postcode", "addr:postcode", + "tiger:zip_left", "tiger:zip_right"], + "values" : { + "" : "postcode" + } +}, +{ + "keys" : ["capital"], + "values" : { + "" : "extra" + } } ] diff --git a/settings/import-full.style b/settings/import-full.style index f84b9305..3a743001 100644 --- a/settings/import-full.style +++ b/settings/import-full.style @@ -198,6 +198,12 @@ "" : "address,house" } }, +{ + "keys" : ["addr:interpolation"], + "values" : { + "" : "interpolation,address" + } +}, { "keys" : ["addr:*", "is_in:*", "tiger:county", "is_in"], "values" : { -- 2.39.5