Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import UK postcodes from ONSPD instead of Code-Point Open #216

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b2d1d6d
Script for importing UK postcodes from ONSPD
h-lame Nov 20, 2015
74aa673
Allow detecting location availability per postcode row
h-lame Nov 24, 2015
32d772e
Provide fixture data for NI council / electoral / wards
h-lame Nov 20, 2015
7f0f41e
Allow importing postcodes with no location
h-lame Nov 23, 2015
8dafb12
Merge onspd and nspd_crown_dependencies importers
h-lame Nov 25, 2015
503745d
Add command for importing osni boundary data
h-lame Dec 10, 2015
d861f29
Add option for importing OSNI ward boundaries
h-lame Dec 10, 2015
1f4b13a
Import Northern Ireland Assembly constituencies
h-lame Dec 10, 2015
b861d8f
Import NI Electoral Areas (LGE)
h-lame Dec 10, 2015
47a26c3
Import NI EUR area
h-lame Dec 10, 2015
b924486
Add LGW->LGE and LGE->LGD parent lookups
h-lame Dec 10, 2015
5f19d5f
Simplify field extraction by using objects not hashes
h-lame Dec 10, 2015
645a722
Allow specifying SRID of OSNI imports
h-lame Dec 10, 2015
eef599c
Handle NI postcodes in ONSPD importer
h-lame Nov 25, 2015
91ca8f1
Allow specifying srid for GB vs. NI postcodes
h-lame Nov 25, 2015
c55e7f6
Provide ONSPD version of scilly command
h-lame Nov 24, 2015
822f443
Add script for adding GSS codes to NI Areas
h-lame Dec 18, 2015
2617420
Add script for adding names to NI Areas
h-lame Dec 18, 2015
99847c4
Correct LGD names in ni-electoral-areas-2015.csv
h-lame Dec 18, 2015
f4e27f3
Make adding gss codes to ni areas work for real data
h-lame Dec 18, 2015
c159ba1
Allow add_x_to_ni_areas scripts work on 1st import
h-lame Dec 18, 2015
0730197
Convert geometry to application projection in NI shape imports
h-lame Jan 5, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mapit/management/commands/mapit_import_postal_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ def pre_row(self, row, options):
def post_row(self, pc):
return True

def location_available_for_row(self, row):
return True

def handle_row(self, row, options):
if not options['location']:
if not options['location'] or not self.location_available_for_row(row):
return self.do_postcode()

if not options['coord-field-lon']:
Expand Down
Loading