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

update and document GB postcode data #1225

Closed

Conversation

mtmail
Copy link
Collaborator

@mtmail mtmail commented Nov 4, 2018

Conversion script and documentation how the gb_postcode_data.sql file can be recreated. I used August data and you can download it from https://downloads.opencagedata.com/public/

The old file is a couple of year old. 92,639 postcodes are new. 83,512 no longer exist.

The documentation should be symlinked into /docs I'm waiting for #1195 to be merged first.

Copy link
Member

@lonvia lonvia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance we can do without the temporary table and do the projection in php instead? There must be a php binding for the proj library somewhere.

data-sources/gb-postcodes/README.md Outdated Show resolved Hide resolved
@mtmail
Copy link
Collaborator Author

mtmail commented Nov 20, 2018

I tested around and there's a PHP package allowing me to convert to WGS84 lat,lon. But the table schema currently has a geometry column and one can't directly INSERT FROM FILE into that. I'll try adding lat,lon columns and as last step have Postgresql fill the geometry column.

@mtmail mtmail force-pushed the update-and-document-gb-postcode-data branch from 84cb5b2 to 7f380ec Compare November 21, 2018 00:26
@mtmail
Copy link
Collaborator Author

mtmail commented Nov 21, 2018

Rebased. Projection is now done in PHP, thus no temporary table needed. Replaced geometry column with x and y columns (what we do for us-postcodes already). Added link to documentation in /docs sidebar.

@lonvia
Copy link
Member

lonvia commented Dec 1, 2018

Superseded by #1252.

@lonvia lonvia closed this Dec 1, 2018
@mtmail mtmail deleted the update-and-document-gb-postcode-data branch December 3, 2019 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants