Created
August 23, 2016 15:25
-
-
Save robmckinnon/73ffb1ea3db15cd73f0d1cc3dd60a00d to your computer and use it in GitHub Desktop.
Finding an address from UPRN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem install base32-crockford | |
| irb | |
| require 'base32/crockford' | |
| Base32::Crockford.encode(10033530330) | |
| => "9B0Q1ET" | |
| exit | |
| cd address-data/data/address | |
| grep 9B0Q1ET *.tsv | |
| TQ258.tsv:2003-04-27T00:00:00Z 9B0Q1ET 8400765 GROUND FLOOR AND FIRST FLOOR [-0.1364013,51.5173220] 2015-04-20 | |
| cd address-data/data/street | |
| grep 8400765 TQ258.tsv | |
| 2003-04-27T00:00:00Z 8400765 BERNERS STREET LONDON WSM [-0.1368,51.5173] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment