Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYsb0-0005zg-RT for pgsql-general@arkaria.postgresql.org; Wed, 13 May 2020 14:42:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYsaz-0002Ko-O0 for pgsql-general@arkaria.postgresql.org; Wed, 13 May 2020 14:42:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYrvi-0004zZ-3j for pgsql-general@lists.postgresql.org; Wed, 13 May 2020 14:00:14 +0000 Received: from mail-eopbgr140109.outbound.protection.outlook.com ([40.107.14.109] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYrvd-0006hv-MS for pgsql-general@lists.postgresql.org; Wed, 13 May 2020 14:00:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XL0CZenwlLs6r7EbyfOEP5RP1dQPWYg5xyTU9P32PnotTB5pxt1ROhSOatNxVb5AI6unthV08kbidtIeFtHn1bbVx8aOV1ediVYdTUN+aCHvCZADsVjISTAzn4A9l18hkoyjJUNY6JoJ986nVXMgXC3vmkjsLKFGZcEP14z6QLV/QDfPx2bG6n81rUikj2zu5WEuRe2ocpTrag7cyQ2IRfRWL3++/iAAKAY6B2j776rY1jzcKnGCXZdEbn8GEV6i7nCX+7ygvuNGv1FhhXUDmnlP+vGVT//NuK/xNxh05i9pCbWVNw6UAFJmkKGvMOKued2qDIHdz5UA/uggj2PyWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6kTdqLVX/k7Kx3eNgSB3l/kRkFV5FjD7GU5T9bG4lO8=; b=UxXj3AAEdfWx/0UocL82xnjaujRGT9EusoLFViiydeJyqc+++vb7/GMzYPUbYB/HSCrjWrXuC9bJVWT9l+y7M4UzN0pZX2Co9AKNUX9Q2pnkXSFbX+LJZ1Q7yXmAT/rZfHHmn0WvNc9sl5jiWgWhFiApmQPNxOsta+W9xbh5pXD4yfpomIPWnMlBdCa2R6nLiestW0BG39DhiW7a96vvmUhJ0S1uLyKXnjsLgkacUngiOeSDybkMwOLLddvuaMeYne1u9u+AT8RvilgqVDrWZSc5LC9gAi8sl/IwFefKw62sD1ntS/rOfjVbBxUMaReTo4kvfLvtP64Jay0Eo+1tJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=broadwellmanor.co.uk; dmarc=pass action=none header.from=broadwellmanor.co.uk; dkim=pass header.d=broadwellmanor.co.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bt839348pop.onmicrosoft.com; s=selector2-bt839348pop-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6kTdqLVX/k7Kx3eNgSB3l/kRkFV5FjD7GU5T9bG4lO8=; b=oUtIgSFd9Yzd81/IcD/oUOLdSJ/eRxDmZ2Tm2zwJRDFlFKt73zrGPO0cqnQMx5xfHwEKlWwmEMzQWjpG/51zNrpTw7R43dcuQe161QywjKXC2kKsez2QNVz861nMCQ6kl+OxuVHamHt6n6ORDKEDumDpffiitvmNwwqfoKn3CX4= Authentication-Results: lists.postgresql.org; dkim=none (message not signed) header.d=none;lists.postgresql.org; dmarc=none action=none header.from=broadwellmanor.co.uk; Received: from AM6PR04MB4455.eurprd04.prod.outlook.com (2603:10a6:20b:15::16) by AM6PR04MB4359.eurprd04.prod.outlook.com (2603:10a6:209:3f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.33; Wed, 13 May 2020 14:00:06 +0000 Received: from AM6PR04MB4455.eurprd04.prod.outlook.com ([fe80::b8f5:216c:a319:dfef]) by AM6PR04MB4455.eurprd04.prod.outlook.com ([fe80::b8f5:216c:a319:dfef%7]) with mapi id 15.20.3000.016; Wed, 13 May 2020 14:00:06 +0000 From: David Goodenough To: pgsql-general@lists.postgresql.org Subject: Re: Enforcing uniqueness on [real estate/postal] addresses Date: Wed, 13 May 2020 15:00:02 +0100 Message-ID: <3358546.hN8si68hyB@continuum> In-Reply-To: References: Content-Type: multipart/alternative; boundary="nextPart2391882.zcoQtTOuCG" Content-Transfer-Encoding: 7Bit X-ClientProxiedBy: LO2P265CA0067.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::31) To AM6PR04MB4455.eurprd04.prod.outlook.com (2603:10a6:20b:15::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from continuum.localnet (78.143.216.21) by LO2P265CA0067.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.30 via Frontend Transport; Wed, 13 May 2020 14:00:05 +0000 X-Originating-IP: [78.143.216.21] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 93c78a27-7d65-4e2e-8d15-08d7f745f058 X-MS-TrafficTypeDiagnostic: AM6PR04MB4359: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 0402872DA1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fFavChgjwbPMQOJoPxgkOw7wCb7Wz60nuk1qq0dGjt/Ox3HFLSEBJfjP5j8hXR6idaf/JFoAfvdYUD/vwvoBm4ET2MqDTLiA/QH3tzvvhsF+AwUivyp/ANrZSu8/4xLM6+mqMIQb7iC3oxTgoKKdbgYgoc9b1HAB2xyhnxPGIDVTpYp1MGQoZvqN0vHgrvFY5W12JOy5MI/t5tafO6BL6/sLZ2MF4cRelqfTggWyxR6zj+BPwC38Z/IKIOK1wCP5eCPPS2YFyWAwlLr1c1/VlfC/WZD4r3RRiW1q0mFXy59TVKU8/2tZ5+OaivPkGGbnHhCyQiBoU+8vzCheh/J0Tuc05cCCyn/AUE3eXtxavddMpvdrVR164ShQz5pAnh9KWwnYpH7az63K795yVkPZcg9jir5W2cBXIXShl5tk8/VyzkxsrAOufIU76VaTT+HIY8Su1+XNUbx9P5RXCeDBFwwLlfufKdRDjQY+EfwMd//C3Pks0zuO6s0XHCrts1R1Cr+Pd28dLzjTJ/w+dcQImAfkRXdi4v+LfvfGtoYf+26NJFuTcq8y0JseE07BLYV4C3gp4+l6oy74M3OKQ9WvoJ3IFFDcfi8Bsa0jr+H+SubUnEKuR9v3Ilsoa0U+p4WlV2Q7gnFDBoBXRcEBhx/H3Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4455.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(39830400003)(396003)(136003)(346002)(366004)(376002)(33430700001)(508600001)(956004)(6512007)(6916009)(52116002)(9686003)(86362001)(6486002)(33440700001)(966005)(6666004)(5660300002)(9576002)(8676002)(66946007)(44832011)(53546011)(6506007)(16526019)(26005)(8936002)(186003)(66476007)(66556008)(2906002)(316002)(33716001)(39026012);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 02FlXCJfkl7hpXeswsPPDaBu7ZQA5vefZvmSgxKxN3TE7WwLHg6RkPFCTMXLfpGameVC+MEHKErhr7JH5LRvXu7O1F4fG0N42lOqVA6Yi81RbB/FchDi5MJ6k30f0V4aLGCzKh67QULlz+QIS+APnrG32lTTZ9MZm5Enlj0W4TWAcig+r+W4zFn9MADM1XCJZ8MJDdSRPZhaqWxQA3IjG7AtTg/4eeZpNroymIrBcXjKAnceTP3ZPxE4GNwoj9DLDLlQd6aWclpP+Ov5pLHklrYT1xmVO1NvnNrClx+rTgiglTpBpWQZ+U5P5jQaktoFpQuNTkiFMiWIai3C7Wj8vQKhGcdw5U8N5vIH1XdK4Rd3F6BRq4gkjcWYXMWC9PVByfJeAkCnCpOZXc7j+LDpPW5aQiJM6estGgtUwOgt4JOm73UAsxgR3uOKbbBYzs5+P5b1r1k/etcuN1GDyW4JCHBMGLfABaFb6BEwSM/d4Gc= X-OriginatorOrg: broadwellmanor.co.uk X-MS-Exchange-CrossTenant-Network-Message-Id: 93c78a27-7d65-4e2e-8d15-08d7f745f058 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2020 14:00:05.6521 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2443ed4f-5610-4485-b2cf-cebee941facb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8yKsL+YE/hnLaTfTnQvoJ5B3990JpQpPsOK2R5QzkiY84uvOs2VDdhlhYRPyeBhVaNt0shNMcmvHW+62tU+Brapz1GySagxVWLkjxIKYP5yAnPH79DTCjoGpEIpRAPDM X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4359 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --nextPart2391882.zcoQtTOuCG Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" There is also What3Words.com, which give a three word name to each 3m square over the world. Longer that USNG but easier to remember/type/say. David On Wednesday, 13 May 2020 14:33:30 BST Basques, Bob (CI-StPaul) wrote: > I've been following this thread with some interest. > > Was wondering if you ever thought about binding the textual address to a > USNG location. https://usngcenter.org/ > You can easily add individual locations within something like a farm field > with as few as eight unique digits that would identify each 10 meter > square. I'm oversimplifying my response, but once you look through how the > USNG works, you'll see the benefit for using it as a address/location > uniqueness enforcing tool. > It would easily allow for locating many different locations inside of a > larger addressed location, as well as non, addressed locations. The USNG > location can be thought of as a unique address unto itself, and works > across the planet. No two are alike. > > > Bobb > > > > -----Original Message----- > From: Peter Devoy > Sent: Tuesday, May 12, 2020 3:56 PM > To: Peter J. Holzer > Cc: pgsql-general@lists.postgresql.org > Subject: Re: Enforcing uniqueness on [real estate/postal] addresses > > Think Before You Click: This email originated outside our organization. > > > > >Is is possible to have two entries which have the same > >address_identifier_general, street and postcode, but different > >descriptions? > > > Unfortunately, yes. The data comes from gov't systems to regulate the > development/alteration of arbitrary pieces of property and those pieces do > not always have a postal address. E.g. a farmer may one year apply to > erect a wind turbine in "field north of Foo Cottage" and the next year > apply to demolish "barnhouse west of Foo Cottage". > Now, I know what you are thinking, there is a normalization opportunity and > you may well be right. However, the problem does exist in some of the other > fields too and I am already facing a fair amount of join complexity in my > schema so I am trying to figure out my options :) > > >(What is an address_identifier_general, btw?) > > Address identifier composed by numbers and/or characters. I'm using the > terminology from the EU's "INSPIRE Data Specification on Addresses" > Guidelines. > I haven't yet had the opportunity to try out the above suggestions but I > will post again when I have. > --nextPart2391882.zcoQtTOuCG Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

There is also What3Words.com, which give a three word name to each 3m square over the world. Longer that USNG but easier to remember/type/say.

 

David

 

On Wednesday, 13 May 2020 14:33:30 BST Basques, Bob (CI-StPaul) wrote:

> I've been following this thread with some interest.

>

> Was wondering if you ever thought about binding the textual address to a

> USNG location. https://usngcenter.org/

> You can easily add individual locations within something like a farm field

> with as few as eight unique digits that would identify each 10 meter

> square. I'm oversimplifying my response, but once you look through how the

> USNG works, you'll see the benefit for using it as a address/location

> uniqueness enforcing tool.

> It would easily allow for locating many different locations inside of a

> larger addressed location, as well as non, addressed locations. The USNG

> location can be thought of as a unique address unto itself, and works

> across the planet. No two are alike.

>

>

> Bobb

>

>

>

> -----Original Message-----

> From: Peter Devoy <peter@3xe.co.uk>

> Sent: Tuesday, May 12, 2020 3:56 PM

> To: Peter J. Holzer <hjp-pgsql@hjp.at>

> Cc: pgsql-general@lists.postgresql.org

> Subject: Re: Enforcing uniqueness on [real estate/postal] addresses

>

> Think Before You Click: This email originated outside our organization.

>

>

>

> >Is is possible to have two entries which have the same

> >address_identifier_general, street and postcode, but different

> >descriptions?

>

>

> Unfortunately, yes. The data comes from gov't systems to regulate the

> development/alteration of arbitrary pieces of property and those pieces do

> not always have a postal address. E.g. a farmer may one year apply to

> erect a wind turbine in "field north of Foo Cottage"

and the next year

> apply to demolish "barnhouse west of Foo Cottage".

> Now, I know what you are thinking, there is a normalization opportunity and

> you may well be right. However, the problem does exist in some of the other

> fields too and I am already facing a fair amount of join complexity in my

> schema so I am trying to figure out my options :)

>

> >(What is an address_identifier_general, btw?)

>

> Address identifier composed by numbers and/or characters. I'm using the

> terminology from the EU's "INSPIRE Data Specification on Addresses"

> Guidelines.

> I haven't yet had the opportunity to try out the above suggestions but I

> will post again when I have.

>

 

 

--nextPart2391882.zcoQtTOuCG--